23 #if !defined(OPENNURBS_TEXTURE_MAPPING_INC_) 24 #define OPENNURBS_TEXTURE_MAPPING_INC_ 76 enum class TYPE : unsigned int
84 mesh_mapping_primitive = 6,
85 srf_mapping_primitive = 7,
86 brep_mapping_primitive = 8
90 unsigned int type_as_unsigned
122 clspt_projection = 1,
127 unsigned int projection_as_unsigned
155 unsigned int texture_space_as_unsigned
169 void Internal_CopyFrom(
173 void Internal_Destroy();
175 bool Internal_WriteV5(
179 bool Internal_ReadV5(
184 bool IsValid(
class ON_TextLog* text_log =
nullptr )
const override;
188 unsigned int SizeOf()
const override;
202 bool RequiresVertexNormals()
const;
203 bool IsPeriodic(
void)
const;
210 bool SetSurfaceParameterMapping(
void);
250 bool SetPlaneMapping(
280 bool SetCylinderMapping(
298 bool SetSphereMapping(
379 bool GetMappingPlane(
400 bool GetMappingCylinder(
418 bool GetMappingSphere(
469 bool ReverseTextureCoordinate(
int dir );
482 bool SwapTextureCoordinate(
int i,
int j );
497 bool TileTextureCoordinate(
int dir,
double count,
double offset );
552 int EvaluatePlaneMapping(
558 int EvaluateSphereMapping(
564 int EvaluateCylinderMapping(
570 int EvaluateBoxMapping(
594 bool HasMatchingTextureCoordinates(
596 const ON_Xform* object_xform =
nullptr 599 bool HasMatchingTextureCoordinates(
601 const ON_Xform* object_xform =
nullptr 649 bool GetTextureCoordinates(
657 bool GetTextureCoordinates(
677 bool m_bCapped =
false;
696 ON__UINT32 MappingCRC()
const;
704 const ON_Mesh* CustomMappingMeshPrimitive(
void)
const;
708 const ON_Brep* CustomMappingBrepPrimitive(
void)
const;
712 const ON_Surface* CustomMappingSurfacePrimitive(
void)
const;
714 void SetCustomMappingPrimitive(
ON_Object*);
717 #pragma ON_PRAGMA_WARNING_PUSH 718 #pragma ON_PRAGMA_WARNING_DISABLE_MSC( 4251 ) 722 std::shared_ptr<ON_Object> m_mapping_primitive =
nullptr;
723 #pragma ON_PRAGMA_WARNING_POP 726 #if defined(ON_DLL_TEMPLATE) Definition: opennurbs_brep.h:917
The ON_ModelComponent class is a base class for all components in a model and manages the index...
Definition: opennurbs_model_component.h:24
Definition: opennurbs_mesh.h:2123
TEXTURE_SPACE
Definition: opennurbs_texture_mapping.h:144
Definition: opennurbs_array.h:36
static const ON_TextureMapping SurfaceParameterTextureMapping
Definition: opennurbs_texture_mapping.h:47
TYPE
Definition: opennurbs_texture_mapping.h:75
static const ON_TextureMapping Unset
Definition: opennurbs_texture_mapping.h:43
ON_Cylinder is a right circular cylinder.
Definition: opennurbs_cylinder.h:27
ON_Object array is used to store lists of classes that are derived from ON_Object. It differs from ON_ClassArray in that the virtual ON_Object::MemoryRelocate function is called when growing the dynamic array requires changing the location of the memory buffer used to store the elements in the array.
Definition: opennurbs_array.h:725
Definition: opennurbs_string.h:2020
PROJECTION
Definition: opennurbs_texture_mapping.h:119
Definition: opennurbs_mesh.h:2188
Definition: opennurbs_texture_mapping.h:37
Definition: opennurbs_line.h:20
Definition: opennurbs_brep.h:1472
Pure virtual base class for all classes that must provide runtime class id or support object level 3D...
Definition: opennurbs_object.h:460
Definition: opennurbs_textlog.h:20
Definition: opennurbs_archive.h:1783
Definition: opennurbs_model_component.h:1622
Definition: opennurbs_point.h:460
Definition: opennurbs_plane.h:20
Definition: opennurbs_surface.h:57
Definition: opennurbs_point.h:1152
Definition: opennurbs_point.h:46
Definition: opennurbs_sphere.h:22