OCC Main Page | DataExchange | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

DataExchange
TKSTL
StlMesh


StlMesh_MeshDomain Class Reference

A mesh domain is a set of triangles defined with
three geometric vertices. The mesh domain has its
own deflection.

.

#include <StlMesh_MeshDomain.hxx>


Public Member Functions

Standard_EXPORT StlMesh_MeshDomain ()
 The mesh deflection is defaulted to Confusion from
package Precision.
.
Standard_EXPORT StlMesh_MeshDomain (const Standard_Real Deflection)
 Raised if the deflection is lower than zero
//! Raised if the deflection is lower than Confusion
from package Precision
.
virtual Standard_EXPORT Standard_Integer AddTriangle (const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer V3, const Standard_Real Xn, const Standard_Real Yn, const Standard_Real Zn)
 Build a triangle with the triplet of vertices (V1,
V2, V3). This triplet defines the indexes of the
vertex in the current domain The coordinates Xn,
Yn, Zn defines the normal direction to the
triangle. Returns the range of the triangle in
the current domain.
.
virtual Standard_EXPORT Standard_Integer AddVertex (const Standard_Real X, const Standard_Real Y, const Standard_Real Z)
 Returns the range of the vertex in the current
domain.
.
virtual Standard_EXPORT Standard_Integer AddOnlyNewVertex (const Standard_Real X, const Standard_Real Y, const Standard_Real Z, Standard_Boolean &IsNew)
 Returns the range of the vertex in the current
domain. The current vertex is not inserted in the
mesh if it already exist.
.
virtual Standard_Real Deflection () const
virtual Standard_Integer NbTriangles () const
 Number of triangles in the mesh.
.
virtual Standard_Integer NbVertices () const
 Number of vertices in the mesh.
.
virtual const StlMesh_SequenceOfMeshTriangleTriangles () const
 Returns the set of triangles of the current mesh domain
.
virtual const TColgp_SequenceOfXYZ & Vertices () const
 Returns the coordinates of the vertices of the
mesh domain of range <domainindex>. {XV1, YV1,
ZV1, XV2, YV2, ZV2, XV3,.....}
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Attributes

Standard_Real deflection
Standard_Integer nbVertices
Standard_Integer nbTriangles
TColgp_SequenceOfXYZ vertexCoords
StlMesh_SequenceOfMeshTriangle trianglesVertex


Constructor & Destructor Documentation

Standard_EXPORT StlMesh_MeshDomain::StlMesh_MeshDomain  ) 
 

Standard_EXPORT StlMesh_MeshDomain::StlMesh_MeshDomain const Standard_Real  Deflection  ) 
 


Member Function Documentation

virtual Standard_EXPORT Standard_Integer StlMesh_MeshDomain::AddOnlyNewVertex const Standard_Real  X,
const Standard_Real  Y,
const Standard_Real  Z,
Standard_Boolean &  IsNew
[virtual]
 

virtual Standard_EXPORT Standard_Integer StlMesh_MeshDomain::AddTriangle const Standard_Integer  V1,
const Standard_Integer  V2,
const Standard_Integer  V3,
const Standard_Real  Xn,
const Standard_Real  Yn,
const Standard_Real  Zn
[virtual]
 

virtual Standard_EXPORT Standard_Integer StlMesh_MeshDomain::AddVertex const Standard_Real  X,
const Standard_Real  Y,
const Standard_Real  Z
[virtual]
 

Standard_Real StlMesh_MeshDomain::Deflection  )  const [inline, virtual]
 

Standard_EXPORT const StlMesh_MeshDomain::Handle Standard_Type   )  const
 

Standard_Integer StlMesh_MeshDomain::NbTriangles  )  const [inline, virtual]
 

Standard_Integer StlMesh_MeshDomain::NbVertices  )  const [inline, virtual]
 

const StlMesh_SequenceOfMeshTriangle & StlMesh_MeshDomain::Triangles  )  const [inline, virtual]
 

const TColgp_SequenceOfXYZ & StlMesh_MeshDomain::Vertices  )  const [inline, virtual]
 


Field Documentation

Standard_Real StlMesh_MeshDomain::deflection [private]
 

Standard_Integer StlMesh_MeshDomain::nbTriangles [private]
 

Standard_Integer StlMesh_MeshDomain::nbVertices [private]
 

StlMesh_SequenceOfMeshTriangle StlMesh_MeshDomain::trianglesVertex [private]
 

TColgp_SequenceOfXYZ StlMesh_MeshDomain::vertexCoords [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 14:45:54 2008 for OpenCASCADE by  doxygen 1.4.1