QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Mesh Class Reference

#include <opennurbs_mesh.h>

Inheritance diagram for ON_Mesh:
ON_Geometry ON_Object

Public Member Functions

void Append (const ON_Mesh &)
 
double Area (double *error_estimate=NULL) const
 
ON_3dPoint AreaCentroid (double *area=NULL) const
 
bool AreaMassProperties (ON_MassProperties &mp, bool bArea=true, bool bFirstMoments=true, bool bSecondMoments=true, bool bProductMoments=true) const
 
const ON_TextureCoordinatesCachedTextureCoordinates (const ON_UUID &mapping_id) const
 
bool CollapseEdge (int topei)
 
bool CombineCoincidentVertices (ON_3fVector, double)
 
bool CombineIdenticalVertices (bool bIgnoreVertexNormals=false, bool bIgnoreTextureCoordinates=false)
 
bool Compact ()
 
bool ComputeFaceNormal (int)
 
bool ComputeFaceNormals ()
 
bool ComputeVertexNormals ()
 
bool ConvertQuadsToTriangles ()
 
bool ConvertTrianglesToQuads (double angle_tol_radians, double min_diagonal_length_ratio)
 
bool CountQuads ()
 
const ON_MeshPartitionCreatePartition (int, int)
 
int CullDegenerateFaces ()
 
int CullUnusedVertices ()
 
ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
bool DeleteFace (int meshfi)
 
void DeleteMeshParameters ()
 
void Destroy ()
 
void DestroyHiddenVertexArray ()
 
void DestroyNgonList ()
 
void DestroyPartition ()
 
void DestroyRuntimeCache (bool bDelete=true)
 
void DestroyTopology ()
 
void DestroyTree (bool bDeleteTree=true)
 
int Dimension () const
 
void Dump (ON_TextLog &) const
 
ON_MeshEdgeRef EdgeRef (int tope_index) const
 
ON_MeshEdgeRef EdgeRef (ON_COMPONENT_INDEX ci) const
 
void EmergencyDestroy ()
 
bool EvaluateMeshGeometry (const ON_Surface &)
 
bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
int FaceCount () const
 
bool FaceIsHidden (int meshvi) const
 
ON_MeshFaceRef FaceRef (int mesh_F_index) const
 
ON_MeshFaceRef FaceRef (ON_COMPONENT_INDEX ci) const
 
void Flip ()
 
void FlipFaceNormals ()
 
void FlipFaceOrientation ()
 
void FlipVertexNormals ()
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
bool GetCurvatureStats (ON::curvature_style, ON_MeshCurvatureStats &) const
 
int GetMeshEdges (ON_SimpleArray< ON_2dex > &edges) const
 
bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
int GetVertexEdges (int vcount, const int *vertex_index, bool bNoDuplicates, ON_SimpleArray< ON_2dex > &edges) const
 
bool HasCachedTextureCoordinates () const
 
bool HasFaceNormals () const
 
bool HasPackedTextureRegion () const
 
bool HasPrincipalCurvatures () const
 
bool HasSurfaceParameters () const
 
bool HasTextureCoordinates () const
 
bool HasVertexColors () const
 
bool HasVertexNormals () const
 
const bool * HiddenVertexArray () const
 
int HiddenVertexCount () const
 
void InvalidateBoundingBoxes ()
 
void InvalidateCurvatureStats ()
 
void InvalidateTextureCoordinateBoundingBox ()
 
void InvalidateVertexBoundingBox ()
 
void InvalidateVertexNormalBoundingBox ()
 
bool IsClosed () const
 
bool IsDeformable () const
 
bool IsManifold (bool bTopologicalTest, bool *pbIsOriented=NULL, bool *pbHasBoundary=NULL) const
 
bool IsMorphable () const
 
bool IsSwappableEdge (int topei)
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
bool MakeDeformable ()
 
void MemoryRelocate ()
 
ON_GeometryMeshComponent (ON_COMPONENT_INDEX ci) const
 
const ON_MeshParametersMeshParameters () const
 
ON_MeshMeshPart (const ON_MeshPart &mesh_part, ON_Mesh *mesh) const
 
const class ON_MeshTree * MeshTree () const
 
class ON_MeshNgonListModifyNgonList ()
 
bool Morph (const ON_SpaceMorph &morph)
 
const class ON_MeshNgonListNgonList () const
 
bool NormalizeTextureCoordinates ()
 
ON::object_type ObjectType () const
 
 ON_Mesh ()
 
 ON_Mesh (const ON_Mesh &)
 
 ON_Mesh (int, int, bool, bool)
 
ON_Meshoperator= (const ON_Mesh &)
 
const ON_MeshPartitionPartition () const
 
int QuadCount () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
bool ReverseSurfaceParameters (int dir)
 
bool ReverseTextureCoordinates (int dir)
 
const ON_TextureCoordinatesSetCachedTextureCoordinates (const class ON_TextureMapping &mapping, const class ON_Xform *mesh_xform=0, bool bLazy=true)
 
void SetClosed (int)
 
void SetMeshParameters (const ON_MeshParameters &)
 
bool SetQuad (int, int, int, int, int)
 
bool SetTextureCoord (int, double, double)
 
bool SetTextureCoordinates (const class ON_TextureMapping &mapping, const class ON_Xform *mesh_xform=0, bool bLazy=true)
 
bool SetTriangle (int, int, int, int)
 
bool SetVertex (int, const ON_3dPoint &)
 
bool SetVertex (int, const ON_3fPoint &)
 
void SetVertexHiddenFlag (int meshvi, bool bHidden)
 
bool SetVertexNormal (int, const ON_3dVector &)
 
bool SetVertexNormal (int, const ON_3fVector &)
 
unsigned int SizeOf () const
 
ON_BOOL32 SwapCoordinates (int, int)
 
bool SwapEdge (int topei)
 
const ON_MeshTopologyTopology () const
 
ON_BOOL32 Transform (const ON_Xform &)
 
bool TransposeSurfaceParameters ()
 
bool TransposeTextureCoordinates ()
 
int TriangleCount () const
 
bool UnitizeFaceNormals ()
 
bool UnitizeVertexNormals ()
 
int VertexCount () const
 
bool VertexIsHidden (int meshvi) const
 
ON_MeshVertexRef VertexRef (int mesh_V_index) const
 
ON_MeshVertexRef VertexRef (ON_COMPONENT_INDEX ci) const
 
double Volume (ON_3dPoint base_point=ON_origin, double *error_estimate=NULL) const
 
ON_3dPoint VolumeCentroid (ON_3dPoint base_point=ON_origin, double *volume=NULL) const
 
bool VolumeMassProperties (ON_MassProperties &mp, bool bVolume=true, bool bFirstMoments=true, bool bSecondMoments=true, bool bProductMoments=true, ON_3dPoint base_point=ON_UNSET_POINT) const
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_Mesh ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual void ClearBoundingBox ()
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual ON_BOOL32 HasBrepForm () const
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Public Attributes

ON_SimpleArray< ON_Colorm_C
 
ON_MappingTag m_Ctag
 
ON_SimpleArray< ON_MeshFacem_F
 
ON_3fVectorArray m_FN
 
ON_SimpleArray< bool > m_H
 
int m_hidden_count
 
ON_SimpleArray< ON_SurfaceCurvaturem_K
 
ON_3fVectorArray m_N
 
ON_Interval m_packed_tex_domain [2]
 
bool m_packed_tex_rotate
 
const ON_Objectm_parent
 
ON_2dPointArray m_S
 
ON_Interval m_srf_domain [2]
 
double m_srf_scale [2]
 
ON_2fPointArray m_T
 
ON_ClassArray< ON_TextureCoordinatesm_TC
 
ON_MappingTag m_Ttag
 
ON_3fPointArray m_V
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Protected Attributes

int m_closed
 
int m_invalid_count
 
ON_MeshCurvatureStatsm_kstat [4]
 
ON_MeshParametersm_mesh_parameters
 
class ON_MeshTree * m_mtree
 
float m_nbox [2][3]
 
ON_MeshPartitionm_partition
 
int m_quad_count
 
float m_tbox [2][2]
 
ON_MeshTopology m_top
 
int m_triangle_count
 
float m_vbox [2][3]
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Mesh)
 
bool Read_1 (ON_BinaryArchive &)
 
bool Read_2 (int, ON_BinaryArchive &)
 
bool ReadFaceArray (int, int, ON_BinaryArchive &)
 
bool SwapEdge_Helper (int, bool)
 
bool Write_1 (ON_BinaryArchive &) const
 
bool Write_2 (int, ON_BinaryArchive &) const
 
bool WriteFaceArray (int, int, ON_BinaryArchive &) const
 

Friends

class ON_MeshEdgeRef
 
class ON_MeshFaceRef
 
class ON_MeshVertexRef
 

Constructor & Destructor Documentation

◆ ON_Mesh() [1/3]

ON_Mesh::ON_Mesh ( )

◆ ON_Mesh() [2/3]

ON_Mesh::ON_Mesh ( int initial_facet_capacity,
int initial_vertex_capacity,
bool bHasVertexNormals,
bool bHasTextureCoordinates )

◆ ON_Mesh() [3/3]

ON_Mesh::ON_Mesh ( const ON_Mesh & src)

◆ ~ON_Mesh()

ON_Mesh::~ON_Mesh ( )

Member Function Documentation

◆ Append()

void ON_Mesh::Append ( const ON_Mesh & m)

◆ Area()

double ON_Mesh::Area ( double * error_estimate = NULL) const

◆ AreaCentroid()

ON_3dPoint ON_Mesh::AreaCentroid ( double * area = NULL) const

◆ AreaMassProperties()

bool ON_Mesh::AreaMassProperties ( ON_MassProperties & mp,
bool bArea = true,
bool bFirstMoments = true,
bool bSecondMoments = true,
bool bProductMoments = true ) const

◆ CachedTextureCoordinates()

const ON_TextureCoordinates * ON_Mesh::CachedTextureCoordinates ( const ON_UUID & mapping_id) const

◆ CollapseEdge()

bool ON_Mesh::CollapseEdge ( int topei)

◆ CombineCoincidentVertices()

bool ON_Mesh::CombineCoincidentVertices ( ON_3fVector tolerance,
double cos_normal_angle )

◆ CombineIdenticalVertices()

bool ON_Mesh::CombineIdenticalVertices ( bool bIgnoreVertexNormals = false,
bool bIgnoreTextureCoordinates = false )

◆ Compact()

bool ON_Mesh::Compact ( )

◆ ComputeFaceNormal()

bool ON_Mesh::ComputeFaceNormal ( int fi)

◆ ComputeFaceNormals()

bool ON_Mesh::ComputeFaceNormals ( )

◆ ComputeVertexNormals()

bool ON_Mesh::ComputeVertexNormals ( )

◆ ConvertQuadsToTriangles()

bool ON_Mesh::ConvertQuadsToTriangles ( )

◆ ConvertTrianglesToQuads()

bool ON_Mesh::ConvertTrianglesToQuads ( double angle_tol_radians,
double min_diagonal_length_ratio )

◆ CountQuads()

bool ON_Mesh::CountQuads ( )

◆ CreatePartition()

const ON_MeshPartition * ON_Mesh::CreatePartition ( int partition_max_vertex_count,
int partition_max_triangle_count )

◆ CullDegenerateFaces()

int ON_Mesh::CullDegenerateFaces ( )

◆ CullUnusedVertices()

int ON_Mesh::CullUnusedVertices ( )

◆ DataCRC()

ON__UINT32 ON_Mesh::DataCRC ( ON__UINT32 current_remainder) const
virtual

Reimplemented from ON_Object.

◆ DeleteFace()

bool ON_Mesh::DeleteFace ( int meshfi)

◆ DeleteMeshParameters()

void ON_Mesh::DeleteMeshParameters ( )

◆ Destroy()

void ON_Mesh::Destroy ( )

◆ DestroyHiddenVertexArray()

void ON_Mesh::DestroyHiddenVertexArray ( )

◆ DestroyNgonList()

void ON_Mesh::DestroyNgonList ( )

◆ DestroyPartition()

void ON_Mesh::DestroyPartition ( )

◆ DestroyRuntimeCache()

void ON_Mesh::DestroyRuntimeCache ( bool bDelete = true)
virtual

Reimplemented from ON_Object.

◆ DestroyTopology()

void ON_Mesh::DestroyTopology ( )

◆ DestroyTree()

void ON_Mesh::DestroyTree ( bool bDeleteTree = true)

◆ Dimension()

int ON_Mesh::Dimension ( ) const
virtual

Implements ON_Geometry.

◆ Dump()

void ON_Mesh::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ EdgeRef() [1/2]

ON_MeshEdgeRef ON_Mesh::EdgeRef ( int tope_index) const

◆ EdgeRef() [2/2]

ON_MeshEdgeRef ON_Mesh::EdgeRef ( ON_COMPONENT_INDEX ci) const

◆ EmergencyDestroy()

void ON_Mesh::EmergencyDestroy ( )

◆ EvaluateMeshGeometry()

bool ON_Mesh::EvaluateMeshGeometry ( const ON_Surface & srf)

◆ EvaluatePoint()

bool ON_Mesh::EvaluatePoint ( const class ON_ObjRef & objref,
ON_3dPoint & P ) const
virtual

Reimplemented from ON_Geometry.

◆ FaceCount()

int ON_Mesh::FaceCount ( ) const

◆ FaceIsHidden()

bool ON_Mesh::FaceIsHidden ( int meshvi) const

◆ FaceRef() [1/2]

ON_MeshFaceRef ON_Mesh::FaceRef ( int mesh_F_index) const

◆ FaceRef() [2/2]

ON_MeshFaceRef ON_Mesh::FaceRef ( ON_COMPONENT_INDEX ci) const

◆ Flip()

void ON_Mesh::Flip ( )

◆ FlipFaceNormals()

void ON_Mesh::FlipFaceNormals ( )

◆ FlipFaceOrientation()

void ON_Mesh::FlipFaceOrientation ( )

◆ FlipVertexNormals()

void ON_Mesh::FlipVertexNormals ( )

◆ GetBBox()

ON_BOOL32 ON_Mesh::GetBBox ( double * boxmin,
double * boxmax,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ GetCurvatureStats()

bool ON_Mesh::GetCurvatureStats ( ON::curvature_style kappa_style,
ON_MeshCurvatureStats & stats ) const

◆ GetMeshEdges()

int ON_Mesh::GetMeshEdges ( ON_SimpleArray< ON_2dex > & edges) const

◆ GetTightBoundingBox()

bool ON_Mesh::GetTightBoundingBox ( ON_BoundingBox & tight_bbox,
int bGrowBox = false,
const ON_Xform * xform = 0 ) const
virtual

Reimplemented from ON_Geometry.

◆ GetVertexEdges()

int ON_Mesh::GetVertexEdges ( int vcount,
const int * vertex_index,
bool bNoDuplicates,
ON_SimpleArray< ON_2dex > & edges ) const

◆ HasCachedTextureCoordinates()

bool ON_Mesh::HasCachedTextureCoordinates ( ) const

◆ HasFaceNormals()

bool ON_Mesh::HasFaceNormals ( ) const

◆ HasPackedTextureRegion()

bool ON_Mesh::HasPackedTextureRegion ( ) const

◆ HasPrincipalCurvatures()

bool ON_Mesh::HasPrincipalCurvatures ( ) const

◆ HasSurfaceParameters()

bool ON_Mesh::HasSurfaceParameters ( ) const

◆ HasTextureCoordinates()

bool ON_Mesh::HasTextureCoordinates ( ) const

◆ HasVertexColors()

bool ON_Mesh::HasVertexColors ( ) const

◆ HasVertexNormals()

bool ON_Mesh::HasVertexNormals ( ) const

◆ HiddenVertexArray()

const bool * ON_Mesh::HiddenVertexArray ( ) const

◆ HiddenVertexCount()

int ON_Mesh::HiddenVertexCount ( ) const

◆ InvalidateBoundingBoxes()

void ON_Mesh::InvalidateBoundingBoxes ( )

◆ InvalidateCurvatureStats()

void ON_Mesh::InvalidateCurvatureStats ( )

◆ InvalidateTextureCoordinateBoundingBox()

void ON_Mesh::InvalidateTextureCoordinateBoundingBox ( )

◆ InvalidateVertexBoundingBox()

void ON_Mesh::InvalidateVertexBoundingBox ( )

◆ InvalidateVertexNormalBoundingBox()

void ON_Mesh::InvalidateVertexNormalBoundingBox ( )

◆ IsClosed()

bool ON_Mesh::IsClosed ( ) const

◆ IsDeformable()

bool ON_Mesh::IsDeformable ( ) const
virtual

Reimplemented from ON_Geometry.

◆ IsManifold()

bool ON_Mesh::IsManifold ( bool bTopologicalTest,
bool * pbIsOriented = NULL,
bool * pbHasBoundary = NULL ) const

◆ IsMorphable()

bool ON_Mesh::IsMorphable ( ) const
virtual

Reimplemented from ON_Geometry.

◆ IsSwappableEdge()

bool ON_Mesh::IsSwappableEdge ( int topei)

◆ IsValid()

ON_BOOL32 ON_Mesh::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ MakeDeformable()

bool ON_Mesh::MakeDeformable ( )
virtual

Reimplemented from ON_Geometry.

◆ MemoryRelocate()

void ON_Mesh::MemoryRelocate ( )
virtual

Reimplemented from ON_Object.

◆ MeshComponent()

ON_Geometry * ON_Mesh::MeshComponent ( ON_COMPONENT_INDEX ci) const

◆ MeshParameters()

const ON_MeshParameters * ON_Mesh::MeshParameters ( ) const

◆ MeshPart()

ON_Mesh * ON_Mesh::MeshPart ( const ON_MeshPart & mesh_part,
ON_Mesh * mesh ) const

◆ MeshTree()

const class ON_MeshTree * ON_Mesh::MeshTree ( ) const

◆ ModifyNgonList()

class ON_MeshNgonList * ON_Mesh::ModifyNgonList ( )

◆ Morph()

bool ON_Mesh::Morph ( const ON_SpaceMorph & morph)
virtual

Reimplemented from ON_Geometry.

◆ NgonList()

const class ON_MeshNgonList * ON_Mesh::NgonList ( ) const

◆ NormalizeTextureCoordinates()

bool ON_Mesh::NormalizeTextureCoordinates ( )

◆ ObjectType()

ON::object_type ON_Mesh::ObjectType ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_Mesh::ON_OBJECT_DECLARE ( ON_Mesh )
private

◆ operator=()

ON_Mesh & ON_Mesh::operator= ( const ON_Mesh & src)

◆ Partition()

const ON_MeshPartition * ON_Mesh::Partition ( ) const

◆ QuadCount()

int ON_Mesh::QuadCount ( ) const

◆ Read()

ON_BOOL32 ON_Mesh::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ Read_1()

bool ON_Mesh::Read_1 ( ON_BinaryArchive & file)
private

◆ Read_2()

bool ON_Mesh::Read_2 ( int vcount,
ON_BinaryArchive & file )
private

◆ ReadFaceArray()

bool ON_Mesh::ReadFaceArray ( int vcount,
int fcount,
ON_BinaryArchive & file )
private

◆ ReverseSurfaceParameters()

bool ON_Mesh::ReverseSurfaceParameters ( int dir)

◆ ReverseTextureCoordinates()

bool ON_Mesh::ReverseTextureCoordinates ( int dir)

◆ SetCachedTextureCoordinates()

const ON_TextureCoordinates * ON_Mesh::SetCachedTextureCoordinates ( const class ON_TextureMapping & mapping,
const class ON_Xform * mesh_xform = 0,
bool bLazy = true )

◆ SetClosed()

void ON_Mesh::SetClosed ( int b)

◆ SetMeshParameters()

void ON_Mesh::SetMeshParameters ( const ON_MeshParameters & mp)

◆ SetQuad()

bool ON_Mesh::SetQuad ( int face_index,
int a,
int b,
int c,
int d )

◆ SetTextureCoord()

bool ON_Mesh::SetTextureCoord ( int vertex_index,
double s,
double t )

◆ SetTextureCoordinates()

bool ON_Mesh::SetTextureCoordinates ( const class ON_TextureMapping & mapping,
const class ON_Xform * mesh_xform = 0,
bool bLazy = true )

◆ SetTriangle()

bool ON_Mesh::SetTriangle ( int face_index,
int a,
int b,
int c )

◆ SetVertex() [1/2]

bool ON_Mesh::SetVertex ( int vertex_index,
const ON_3dPoint & vertex_location )

◆ SetVertex() [2/2]

bool ON_Mesh::SetVertex ( int vertex_index,
const ON_3fPoint & vertex_location )

◆ SetVertexHiddenFlag()

void ON_Mesh::SetVertexHiddenFlag ( int meshvi,
bool bHidden )

◆ SetVertexNormal() [1/2]

bool ON_Mesh::SetVertexNormal ( int vertex_index,
const ON_3dVector & normal )

◆ SetVertexNormal() [2/2]

bool ON_Mesh::SetVertexNormal ( int vertex_index,
const ON_3fVector & normal )

◆ SizeOf()

unsigned int ON_Mesh::SizeOf ( ) const
virtual

Reimplemented from ON_Object.

◆ SwapCoordinates()

ON_BOOL32 ON_Mesh::SwapCoordinates ( int i,
int j )
virtual

Reimplemented from ON_Geometry.

◆ SwapEdge()

bool ON_Mesh::SwapEdge ( int topei)

◆ SwapEdge_Helper()

bool ON_Mesh::SwapEdge_Helper ( int topei,
bool bTestOnly )
private

◆ Topology()

const ON_MeshTopology & ON_Mesh::Topology ( ) const

◆ Transform()

ON_BOOL32 ON_Mesh::Transform ( const ON_Xform & xform)
virtual

Reimplemented from ON_Geometry.

◆ TransposeSurfaceParameters()

bool ON_Mesh::TransposeSurfaceParameters ( )

◆ TransposeTextureCoordinates()

bool ON_Mesh::TransposeTextureCoordinates ( )

◆ TriangleCount()

int ON_Mesh::TriangleCount ( ) const

◆ UnitizeFaceNormals()

bool ON_Mesh::UnitizeFaceNormals ( )

◆ UnitizeVertexNormals()

bool ON_Mesh::UnitizeVertexNormals ( )

◆ VertexCount()

int ON_Mesh::VertexCount ( ) const

◆ VertexIsHidden()

bool ON_Mesh::VertexIsHidden ( int meshvi) const

◆ VertexRef() [1/2]

ON_MeshVertexRef ON_Mesh::VertexRef ( int mesh_V_index) const

◆ VertexRef() [2/2]

ON_MeshVertexRef ON_Mesh::VertexRef ( ON_COMPONENT_INDEX ci) const

◆ Volume()

double ON_Mesh::Volume ( ON_3dPoint base_point = ON_origin,
double * error_estimate = NULL ) const

◆ VolumeCentroid()

ON_3dPoint ON_Mesh::VolumeCentroid ( ON_3dPoint base_point = ON_origin,
double * volume = NULL ) const

◆ VolumeMassProperties()

bool ON_Mesh::VolumeMassProperties ( ON_MassProperties & mp,
bool bVolume = true,
bool bFirstMoments = true,
bool bSecondMoments = true,
bool bProductMoments = true,
ON_3dPoint base_point = ON_UNSET_POINT ) const

◆ Write()

ON_BOOL32 ON_Mesh::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

◆ Write_1()

bool ON_Mesh::Write_1 ( ON_BinaryArchive & file) const
private

◆ Write_2()

bool ON_Mesh::Write_2 ( int Vcount,
ON_BinaryArchive & file ) const
private

◆ WriteFaceArray()

bool ON_Mesh::WriteFaceArray ( int vcount,
int fcount,
ON_BinaryArchive & file ) const
private

Friends And Related Symbol Documentation

◆ ON_MeshEdgeRef

friend class ON_MeshEdgeRef
friend

◆ ON_MeshFaceRef

friend class ON_MeshFaceRef
friend

◆ ON_MeshVertexRef

friend class ON_MeshVertexRef
friend

Member Data Documentation

◆ m_C

ON_SimpleArray<ON_Color> ON_Mesh::m_C

◆ m_closed

int ON_Mesh::m_closed
protected

◆ m_Ctag

ON_MappingTag ON_Mesh::m_Ctag

◆ m_F

ON_SimpleArray<ON_MeshFace> ON_Mesh::m_F

◆ m_FN

ON_3fVectorArray ON_Mesh::m_FN

◆ m_H

ON_SimpleArray<bool> ON_Mesh::m_H

◆ m_hidden_count

int ON_Mesh::m_hidden_count

◆ m_invalid_count

int ON_Mesh::m_invalid_count
protected

◆ m_K

◆ m_kstat

ON_MeshCurvatureStats* ON_Mesh::m_kstat[4]
protected

◆ m_mesh_parameters

ON_MeshParameters* ON_Mesh::m_mesh_parameters
protected

◆ m_mtree

class ON_MeshTree* ON_Mesh::m_mtree
protected

◆ m_N

ON_3fVectorArray ON_Mesh::m_N

◆ m_nbox

float ON_Mesh::m_nbox[2][3]
protected

◆ m_packed_tex_domain

ON_Interval ON_Mesh::m_packed_tex_domain[2]

◆ m_packed_tex_rotate

bool ON_Mesh::m_packed_tex_rotate

◆ m_parent

const ON_Object* ON_Mesh::m_parent

◆ m_partition

ON_MeshPartition* ON_Mesh::m_partition
protected

◆ m_quad_count

int ON_Mesh::m_quad_count
protected

◆ m_S

ON_2dPointArray ON_Mesh::m_S

◆ m_srf_domain

ON_Interval ON_Mesh::m_srf_domain[2]

◆ m_srf_scale

double ON_Mesh::m_srf_scale[2]

◆ m_T

ON_2fPointArray ON_Mesh::m_T

◆ m_tbox

float ON_Mesh::m_tbox[2][2]
protected

◆ m_TC

◆ m_top

ON_MeshTopology ON_Mesh::m_top
protected

◆ m_triangle_count

int ON_Mesh::m_triangle_count
protected

◆ m_Ttag

ON_MappingTag ON_Mesh::m_Ttag

◆ m_V

ON_3fPointArray ON_Mesh::m_V

◆ m_vbox

float ON_Mesh::m_vbox[2][3]
protected

The documentation for this class was generated from the following files: