|
Public Member Functions |
Standard_EXPORT | BRepMesh_FastDiscret (const Standard_Real defle, const Standard_Real angle, const Bnd_Box &B, const Standard_Boolean withShare=Standard_True, const Standard_Boolean inshape=Standard_False, const Standard_Boolean relative=Standard_False, const Standard_Boolean shapetrigu=Standard_False) |
Standard_EXPORT | BRepMesh_FastDiscret (const Standard_Real defle, const TopoDS_Shape &shape, const Bnd_Box &B, const Standard_Real angle, const Standard_Boolean withShare=Standard_True, const Standard_Boolean inshape=Standard_False, const Standard_Boolean relative=Standard_False, const Standard_Boolean shapetrigu=Standard_False) |
| if the boolean <relative> is True, the
deflection used for the polygonalisation of
each edge will be <defle> * Size of Edge.
the deflection used for the faces will be the maximum
deflection of their edges.
if <shapetrigu> is True, the triangulation, if exists
with a correct deflection, can be used to re-triangulate
the shape.
if <inshape> is True, the calculated
triangulation will be stored in the shape.
|
Standard_EXPORT void | Add (const TopoDS_Shape &shape) |
Standard_EXPORT void | Add (const TopoDS_Face &face) |
Standard_Boolean & | InternalVerticesMode () |
| Returns mode defining if internal vertices on faces
are taken into consideration or not. If this mode is equal to true
that internal vertices on faces are considered during triangulation.
Default value is equal to false (old behaviour).
.
|
Standard_EXPORT BRepMesh_Status | CurrentFaceStatus () const |
Standard_EXPORT Standard_Boolean | Update (const TopoDS_Edge &Edge, const TopoDS_Face &Face, const Handle(Geom2d_Curve)&C, const Standard_Real defedge, const Standard_Real first, const Standard_Real last) |
Standard_EXPORT Standard_Real | Control (const Handle(BRepAdaptor_HSurface)&caro, const Standard_Real defface, BRepMesh_ListOfVertex &inter, TColStd_ListOfInteger &badTri, TColStd_ListOfInteger &nulTri, BRepMesh_Delaun &trigu, const Standard_Boolean isfirst) |
Standard_EXPORT Standard_Integer | Uindex (const MeshShape_SurfacePoint &P) const |
Standard_EXPORT Standard_Integer | Vindex (const MeshShape_SurfacePoint &P) const |
Standard_EXPORT void | Append (MeshShape_ListOfSurfacePoint &pntsOnSurf, const MeshShape_SurfacePoint &P) |
Standard_EXPORT gp_XY | FindUV (const TopoDS_Vertex &V, const gp_Pnt2d &XY, const Standard_Integer ip, const Handle(BRepAdaptor_HSurface)&S, const Standard_Real mindist) |
Standard_EXPORT Standard_Integer | NbDomains () const |
| Gives the number of domains. For each domain
there is a different TopFace.
.
|
Standard_EXPORT const TopoDS_Face & | DomainFace (const Standard_Integer Index) const |
| Gives the TopFace of the domain <index>.
.
|
Standard_EXPORT Standard_Integer | NbTriangles () const |
| Gives the number of built triangles.
.
|
Standard_EXPORT const BRepMesh_Triangle & | Triangle (const Standard_Integer Index) const |
| Gives the triangle of <index>.
.
|
Standard_EXPORT Standard_Integer | NbEdges () const |
| Gives the number of built Edges
.
|
Standard_EXPORT const BRepMesh_Edge & | Edge (const Standard_Integer Index) const |
| Gives the edge of index <index>.
.
|
Standard_EXPORT Standard_Integer | NbVertices () const |
| Gives the number of built Vertices.
.
|
Standard_EXPORT const BRepMesh_Vertex & | Vertex (const Standard_Integer Index) const |
| Gives the vertex of <index>.
.
|
Standard_EXPORT const gp_Pnt & | Pnt (const Standard_Integer Index) const |
| Gives the location3d of the vertex of <index>.
.
|
Standard_EXPORT void | VerticesOfDomain (const Standard_Integer Index, MeshDS_MapOfInteger &Indices) const |
| Gives the list of indices of the vertices of the
domain <index>.
.
|
Standard_EXPORT void | EdgesOfDomain (const Standard_Integer Index, MeshDS_MapOfInteger &Indices) const |
| Gives the list of indices of the edges of the
domain <index>.
.
|
Standard_EXPORT void | TrianglesOfDomain (const Standard_Integer Index, MeshDS_MapOfInteger &Indices) const |
| Gives the list of indices of the triangles
of the domain <index>.
.
|
Standard_EXPORT Standard_Integer | NbPoint3d () const |
| Gives the number of different location in 3d
space. It is different of the number of
vertices if there is more than one surface.
Even for one surface, the number can be different
if an edge is shared.
.
|
Standard_EXPORT const gp_Pnt & | Point3d (const Standard_Integer Index) const |
| Gives the 3d space location of the vertex <index>.
.
|
Standard_EXPORT void | Normal (const Standard_Integer Index, gp_Pnt &Pon, gp_Dir &Nor) const |
| Gives the normale of the vertex of <index> on
his face.
This function create at each call the surface.
To optimize the systematic computing you can use
the folowing loop :
Surface mySurface(DomainFace(theDomain));
loop-On-Vertices-Of-theDomain {
GeomTool::Normal(mySurface, u, v, Pnt, Dir);
}
WARNING : The vertex from wich the <u> and <v> are
used is on <thedomain>.
.
|
Standard_EXPORT Handle_BRepMesh_DataStructureOfDelaun | Result () const |
| Gives the data structure of the mesh.
.
|
Standard_EXPORT Standard_Real | GetDeflection () const |
| returns the deflection value.
|
Standard_EXPORT Standard_Real | GetAngle () const |
| returns the deflection value.
|
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Member Functions |
Standard_EXPORT void | Add (const TopoDS_Edge &edge, const TopoDS_Face &face, const Handle(BRepAdaptor_HSurface)&S, const Handle(Geom2d_Curve)&C, const Standard_Real defedge, const Standard_Real first, const Standard_Real last) |
Standard_EXPORT void | Add (const TopoDS_Vertex &theVert, const TopoDS_Face &face, const Handle(BRepAdaptor_HSurface)&S) |
Standard_EXPORT void | InternalVerticesForRectangle (const Handle(BRepAdaptor_HSurface)&caro, BRepMesh_ListOfVertex &inter, const TColStd_ListOfReal &u1pars, const TColStd_ListOfReal &u2pars, const TColStd_ListOfReal &v1pars, const TColStd_ListOfReal &v2pars) |
Standard_EXPORT void | InternalVertices (const Handle(BRepAdaptor_HSurface)&caro, BRepMesh_ListOfVertex &inter, const Standard_Real defedge, const BRepMesh_Classifier &classifier) |
Standard_EXPORT void | AddInShape (const TopoDS_Face &face, const Standard_Real defedge) |
Private Attributes |
MeshShape_DataMapOfIntegerXY | myrealuv |
Standard_Real | angle |
Standard_Real | deflection |
Standard_Real | mydtotale |
Standard_Boolean | WithShare |
BRepMesh_DataMapOfVertexInteger | vertices |
MeshShape_DataMapOfShapeListOfTransient | edges |
MeshShape_DataMapOfShapeListOfTransient | internaledges |
Standard_Integer | nbDomains |
BRepMesh_DataMapOfIntegerFace | Domains |
Standard_Integer | nbLocat |
MeshShape_DataMapOfIntegerPnt | Location3d |
Handle_BRepMesh_DataStructureOfDelaun | structure |
BRepMesh_ListOfVertex | mylistver |
TColStd_IndexedMapOfInteger | myvemap |
BRepMesh_DataMapOfIntegerListOfXY | mylocation2d |
MeshShape_MapOfCouple | mymap |
Standard_Real | myumin |
Standard_Real | myumax |
Standard_Real | myvmin |
Standard_Real | myvmax |
Standard_Boolean | myrelative |
Standard_Boolean | myshapetrigu |
Standard_Boolean | myinshape |
Standard_Boolean | myInternalVerticesMode |
Standard_Real | deltaX |
Standard_Real | deltaY |
TColStd_IndexedMapOfReal | myUParam |
TColStd_IndexedMapOfReal | myVParam |
BRepMesh_Status | myfacestate |
BRepMesh_DataMapOfShapeReal | mapdefle |
TopTools_ListOfShape | mynottriangulated |
MeshDS_BaseAllocator | myAllocator |