Public Types |
enum | TYPE {
no_mapping = 0,
srfp_mapping = 1,
plane_mapping = 2,
cylinder_mapping = 3,
sphere_mapping = 4,
box_mapping = 5,
mesh_mapping_primitive = 6,
srf_mapping_primitive = 7,
brep_mapping_primitive = 8,
force_32bit_mapping_type = 0xFFFFFFFF
} |
enum | PROJECTION { no_projection = 0,
clspt_projection = 1,
ray_projection = 2,
force_32bit_mapping_projection = 0xFFFFFFFF
} |
enum | TEXTURE_SPACE { single = 0,
divided = 1,
force_32bit_texture_space = 0xFFFFFFFF
} |
Public Member Functions |
| ON_OBJECT_DECLARE (ON_TextureMapping) |
| ON_TextureMapping () |
| ~ON_TextureMapping () |
| ON_TextureMapping (const ON_TextureMapping &src) |
ON_TextureMapping & | operator= (const ON_TextureMapping &src) |
ON_BOOL32 | IsValid (ON_TextLog *text_log=NULL) const |
void | Dump (ON_TextLog &) const |
unsigned int | SizeOf () const |
ON_BOOL32 | Write (ON_BinaryArchive &binary_archive) const |
ON_BOOL32 | Read (ON_BinaryArchive &binary_archive) |
void | Default () |
virtual ON_UUID | ModelObjectId () const |
bool | RequiresVertexNormals () const |
bool | IsPeriodic (void) const |
bool | SetSurfaceParameterMapping (void) |
bool | SetPlaneMapping (const ON_Plane &plane, const ON_Interval &dx, const ON_Interval &dy, const ON_Interval &dz) |
bool | SetCylinderMapping (const ON_Cylinder &cylinder, bool bIsCapped) |
bool | SetSphereMapping (const ON_Sphere &sphere) |
bool | SetBoxMapping (const ON_Plane &plane, ON_Interval dx, ON_Interval dy, ON_Interval dz, bool bIsCapped) |
bool | GetMappingPlane (ON_Plane &plane, ON_Interval &dx, ON_Interval &dy, ON_Interval &dz) const |
bool | GetMappingCylinder (ON_Cylinder &cylinder) const |
bool | GetMappingSphere (ON_Sphere &sphere) const |
bool | GetMappingBox (ON_Plane &plane, ON_Interval &dx, ON_Interval &dy, ON_Interval &dz) const |
bool | ReverseTextureCoordinate (int dir) |
bool | SwapTextureCoordinate (int i, int j) |
bool | TileTextureCoordinate (int dir, double count, double offset) |
virtual int | Evaluate (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
virtual int | Evaluate (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T, const ON_Xform &P_xform, const ON_Xform &N_xform) const |
int | EvaluatePlaneMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
int | EvaluateSphereMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
int | EvaluateCylinderMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
int | EvaluateBoxMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
bool | HasMatchingTextureCoordinates (const ON_Mesh &mesh, const ON_Xform *object_xform=0) const |
bool | HasMatchingTextureCoordinates (const class ON_MappingTag &tag, const ON_Xform *object_xform=0) const |
bool | GetTextureCoordinates (const ON_Mesh &mesh, ON_SimpleArray< ON_3fPoint > &T, const ON_Xform *mesh_xform=0, bool bLazy=false, ON_SimpleArray< int > *Tside=0) const |
bool | GetTextureCoordinates (const ON_Mesh &mesh, ON_SimpleArray< ON_2fPoint > &T, const ON_Xform *mesh_xform=0, bool bLazy=false, ON_SimpleArray< int > *Tside=0) const |
ON__UINT32 | MappingCRC () const |
Static Public Member Functions |
static TYPE | TypeFromInt (int i) |
static PROJECTION | ProjectionFromInt (int i) |
static TEXTURE_SPACE | TextureSpaceFromInt (int i) |
Public Attributes |
ON_UUID | m_mapping_id |
int | m_mapping_index |
ON_wString | m_mapping_name |
TYPE | m_type |
PROJECTION | m_projection |
TEXTURE_SPACE | m_texture_space |
bool | m_bCapped |
ON_Xform | m_Pxyz |
ON_Xform | m_Nxyz |
ON_Xform | m_uvw |
ON_Object * | m_mapping_primitive |
Definition at line 37 of file opennurbs_texture_mapping.h.