QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_material.cpp File Reference
#include "opennurbs.h"

Classes

class  ON__CChangeTextureCoordinateHelper
 
class  ON__CMeshFaceTC
 
class  ON__CNewMeshFace
 

Functions

static void AdjustMeshPeriodicTextureCoordinatesHelper (ON_Mesh &mesh, const ON_Xform *mesh_xform, float *mesh_T, int mesh_T_stride, const int *Tsd, double two_pi_tc, const ON_TextureMapping &mapping)
 
static void AdjustSingleBoxTextureCoordinatesHelper (ON_Mesh &mesh, const ON_Xform *mesh_xform, float *mesh_T, int mesh_T_stride, const int *Tsd, const ON_TextureMapping &box_mapping)
 
static int BestHitHelper (double t0, double t1)
 
static int CompareDouble (double a, double b)
 
static int CompareXform (const ON_Xform &a, const ON_Xform &b)
 
static bool EvBoxSideTextureCoordinateHelper1 (const ON_Mesh &mesh, const ON_Xform *mesh_xform, int vi, int side, const ON_TextureMapping &box_mapping, float *Tx, float *Ty)
 
static bool EvBoxSideTextureCoordinateHelper2 (int side, const ON_TextureMapping &box_mapping, const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T)
 
static bool GetSPTCHelper (const ON_Mesh &mesh, const ON_TextureMapping &mapping, float *tc, int tc_stride)
 
static bool HasSharedVertices (const ON_Mesh &mesh)
 
static int IntersectBoxRayHelper (const ON_3dPoint &rst, const ON_3dVector &n, int dir, double *s)
 
static int IntersectBoxSideRayHelper (int side, const ON_3dPoint &rst, const ON_3dVector &n, double *s)
 
 ON_OBJECT_IMPLEMENT (ON_Material, ON_Object,"60B5DBBC-E660-11d3-BFE4-0010830122F0")
 
 ON_OBJECT_IMPLEMENT (ON_Texture, ON_Object,"D6FF106D-329B-4f29-97E2-FD282A618020")
 
 ON_OBJECT_IMPLEMENT (ON_TextureMapping, ON_Object,"32EC997A-C3BF-4ae5-AB19-FD572B8AD554")
 
static float PoleFix (float t0, float t1)
 
static bool SeamCheckHelper (const ON_TextureMapping &mp, double &two_pi_tc, ON_SimpleArray< int > &Tside, ON_SimpleArray< int > *&Tsd)
 
static float TcDistanceHelper (const ON_2fPoint &tc)
 
static void ThreeToTwoHelper (const ON_SimpleArray< ON_3fPoint > &T3, ON_SimpleArray< ON_2fPoint > &T2)
 

Variables

static const double on__overflow_tol = 1.0e100
 

Function Documentation

◆ AdjustMeshPeriodicTextureCoordinatesHelper()

static void AdjustMeshPeriodicTextureCoordinatesHelper ( ON_Mesh & mesh,
const ON_Xform * mesh_xform,
float * mesh_T,
int mesh_T_stride,
const int * Tsd,
double two_pi_tc,
const ON_TextureMapping & mapping )
static

◆ AdjustSingleBoxTextureCoordinatesHelper()

static void AdjustSingleBoxTextureCoordinatesHelper ( ON_Mesh & mesh,
const ON_Xform * mesh_xform,
float * mesh_T,
int mesh_T_stride,
const int * Tsd,
const ON_TextureMapping & box_mapping )
static

◆ BestHitHelper()

static int BestHitHelper ( double t0,
double t1 )
static

◆ CompareDouble()

static int CompareDouble ( double a,
double b )
static

◆ CompareXform()

static int CompareXform ( const ON_Xform & a,
const ON_Xform & b )
static

◆ EvBoxSideTextureCoordinateHelper1()

static bool EvBoxSideTextureCoordinateHelper1 ( const ON_Mesh & mesh,
const ON_Xform * mesh_xform,
int vi,
int side,
const ON_TextureMapping & box_mapping,
float * Tx,
float * Ty )
static

◆ EvBoxSideTextureCoordinateHelper2()

static bool EvBoxSideTextureCoordinateHelper2 ( int side,
const ON_TextureMapping & box_mapping,
const ON_3dPoint & P,
const ON_3dVector & N,
ON_3dPoint * T )
static

◆ GetSPTCHelper()

static bool GetSPTCHelper ( const ON_Mesh & mesh,
const ON_TextureMapping & mapping,
float * tc,
int tc_stride )
static

◆ HasSharedVertices()

static bool HasSharedVertices ( const ON_Mesh & mesh)
inlinestatic

◆ IntersectBoxRayHelper()

static int IntersectBoxRayHelper ( const ON_3dPoint & rst,
const ON_3dVector & n,
int dir,
double * s )
static

◆ IntersectBoxSideRayHelper()

static int IntersectBoxSideRayHelper ( int side,
const ON_3dPoint & rst,
const ON_3dVector & n,
double * s )
static

◆ ON_OBJECT_IMPLEMENT() [1/3]

ON_OBJECT_IMPLEMENT ( ON_Material ,
ON_Object ,
"60B5DBBC-E660-11d3-BFE4-0010830122F0"  )

◆ ON_OBJECT_IMPLEMENT() [2/3]

ON_OBJECT_IMPLEMENT ( ON_Texture ,
ON_Object ,
"D6FF106D-329B-4f29-97E2-FD282A618020"  )

◆ ON_OBJECT_IMPLEMENT() [3/3]

ON_OBJECT_IMPLEMENT ( ON_TextureMapping ,
ON_Object ,
"32EC997A-C3BF-4ae5-AB19-FD572B8AD554"  )

◆ PoleFix()

static float PoleFix ( float t0,
float t1 )
static

◆ SeamCheckHelper()

static bool SeamCheckHelper ( const ON_TextureMapping & mp,
double & two_pi_tc,
ON_SimpleArray< int > & Tside,
ON_SimpleArray< int > *& Tsd )
static

◆ TcDistanceHelper()

static float TcDistanceHelper ( const ON_2fPoint & tc)
static

◆ ThreeToTwoHelper()

static void ThreeToTwoHelper ( const ON_SimpleArray< ON_3fPoint > & T3,
ON_SimpleArray< ON_2fPoint > & T2 )
static

Variable Documentation

◆ on__overflow_tol

const double on__overflow_tol = 1.0e100
static