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;
700 const
ON_Object* CustomMappingPrimitive(
void) 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:937
Definition: opennurbs_model_component.h:25
Definition: opennurbs_mesh.h:2173
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:76
static const ON_TextureMapping Unset
nil id
Definition: opennurbs_texture_mapping.h:43
Definition: opennurbs_cylinder.h:28
Definition: opennurbs_fpoint.h:216
Definition: opennurbs_array.h:732
Definition: opennurbs_string.h:2089
PROJECTION
Definition: opennurbs_texture_mapping.h:119
Definition: opennurbs_mesh.h:2241
Definition: opennurbs_texture_mapping.h:37
Definition: opennurbs_line.h:20
Definition: opennurbs_brep.h:1513
Definition: opennurbs_object.h:433
Definition: opennurbs_textlog.h:20
< use for generic serialization of binary data
Definition: opennurbs_archive.h:1866
Definition: opennurbs_fpoint.h:38
Definition: opennurbs_model_component.h:1686
Definition: opennurbs_point.h:480
Definition: opennurbs_plane.h:20
Definition: opennurbs_surface.h:56
Definition: opennurbs_point.h:1182
Definition: opennurbs_point.h:46
Definition: opennurbs_sphere.h:22