#include <opennurbs_mesh.h>
◆ ON_MappingTag() [1/2]
      
        
          | ON_MappingTag::ON_MappingTag | ( |  | ) |  | 
      
 
 
◆ ON_MappingTag() [2/2]
◆ Compare()
      
        
          | int ON_MappingTag::Compare | ( | const ON_MappingTag & | other, | 
        
          |  |  | bool | bCompareId = true, | 
        
          |  |  | bool | bCompareCRC = true, | 
        
          |  |  | bool | bCompareXform = true | 
        
          |  | ) |  | const | 
      
 
 
◆ CompareAll()
◆ CompareAllFromPointer()
◆ Default()
      
        
          | void ON_MappingTag::Default | ( |  | ) |  | 
      
 
 
◆ Dump()
◆ Hash()
Returns: A sha1 hash of the m_mapping_id, m_mapping_type, m_mapping_crc and m_mesh_xform the uniquely identifies the mapping tag but can be used where hashes are more convenient. 
 
 
◆ IsDefaultSurfaceParameterMapping()
      
        
          | bool ON_MappingTag::IsDefaultSurfaceParameterMapping | ( |  | ) | const | 
      
 
Returns: True if the mapping tag is for a mapping with type ON_TextureMapping::srfp_mapping with m_uvw = identity. 
 
 
◆ IsSet()
      
        
          | bool ON_MappingTag::IsSet | ( |  | ) | const | 
      
 
Returns: True if the mapping tag is set. 
 
 
◆ Read()
◆ Set()
◆ SetDefaultSurfaceParameterMappingTag()
      
        
          | void ON_MappingTag::SetDefaultSurfaceParameterMappingTag | ( |  | ) |  | 
      
 
 
◆ Transform() [1/2]
      
        
          | const ON_Xform ON_MappingTag::Transform | ( |  | ) | const | 
      
 
Returns: World space transformation to apply to the object when using this mapping. 
 
 
◆ Transform() [2/2]
      
        
          | void ON_MappingTag::Transform | ( | const ON_Xform & | xform | ) |  | 
      
 
 
◆ TransformIsIdentity()
      
        
          | bool ON_MappingTag::TransformIsIdentity | ( |  | ) | const | 
      
 
Returns: True if Transform() will return the identity transformation. 
 
 
◆ TransformTreatedIsIdentity()
  
  | 
        
          | static bool ON_MappingTag::TransformTreatedIsIdentity | ( | const ON_Xform * | xform | ) |  |  | static | 
 
Returns: True if ON_MappingTag will consider xform to be the identity transformation. 
 
 
◆ Write()
◆ m_mapping_crc
The m_mapping_crc is a CRC of a SHA1 hash of the parameters used in the calculation to set the current texture coordinates and/or vertex colors. This CRC is used to detect when the the texture coordinates and/or false colors need to be updated. (Saving the SHA1 hash itself would be better, but changing m_mapping_crc to a SHA1 hash would break the SDK.)
When m_mapping_id = ON_nil_uuid and m_mapping_type = ON_TextureMapping::TYPE::no_mapping, m_mapping_crc has no meaning and is ignored by operator== and operator!=.
When m_mapping_id = ON_MappingTag::SurfaceParameterMapping.m_mapping_id and m_mapping_type = ON_TextureMapping::TYPE::srfp_mapping, m_mapping_crc can be set from a uvw texture coordinate transformation. 
 
 
◆ m_mapping_id
m_mapping_id identifies the mapping used to create the texture coordinates and/or false colors. 
 
 
◆ m_mapping_type
◆ m_mesh_xform
It and records transformations applied to the mesh after the texture coordinates were calculated. If the texture mapping does not change when the mesh is transformed, then set m_mesh_xform to zero so that compares will work right.
When m_mapping_id = ON_nil_uuid and m_mapping_type = ON_TextureMapping::TYPE::no_mapping, m_mesh_xform has no meaning and is ignored by operator== and operator!=.
When m_mapping_id = ON_MappingTag::SurfaceParameterMapping.m_mapping_id and m_mapping_type = ON_TextureMapping::TYPE::srfp_mapping, m_mesh_xform has no meaning and is ignored by operator== and operator!=. 
 
 
◆ SurfaceParameterMapping
◆ Unset