Open CASCADE Technology  6.9.0
Public Member Functions
BRep_Builder Class Reference

A framework providing advanced tolerance control. It is used to build Shapes. If tolerance control is required, you are advised to: More...

#include <BRep_Builder.hxx>

Inheritance diagram for BRep_Builder:
Inheritance graph
[legend]

Public Member Functions

void MakeFace (TopoDS_Face &F) const
 Makes an undefined Face. More...
 
void MakeFace (TopoDS_Face &F, const Handle< Geom_Surface > &S, const Standard_Real Tol) const
 Makes a Face with a surface. More...
 
void MakeFace (TopoDS_Face &F, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol) const
 Makes a Face with a surface and a location. More...
 
void MakeFace (TopoDS_Face &F, const Handle< Poly_Triangulation > &T) const
 Makes a Face with a triangulation. The triangulation is in the same reference system than the TFace. More...
 
void UpdateFace (const TopoDS_Face &F, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol) const
 Updates the face F using the tolerance value Tol, surface S and location Location. More...
 
void UpdateFace (const TopoDS_Face &F, const Handle< Poly_Triangulation > &T) const
 Changes a face triangulation. More...
 
void UpdateFace (const TopoDS_Face &F, const Standard_Real Tol) const
 Updates the face Tolerance. More...
 
void NaturalRestriction (const TopoDS_Face &F, const Standard_Boolean N) const
 Sets the NaturalRestriction flag of the face. More...
 
void MakeEdge (TopoDS_Edge &E) const
 Makes an undefined Edge (no geometry). More...
 
void MakeEdge (TopoDS_Edge &E, const Handle< Geom_Curve > &C, const Standard_Real Tol) const
 Makes an Edge with a curve. More...
 
void MakeEdge (TopoDS_Edge &E, const Handle< Geom_Curve > &C, const TopLoc_Location &L, const Standard_Real Tol) const
 Makes an Edge with a curve and a location. More...
 
void MakeEdge (TopoDS_Edge &E, const Handle< Poly_Polygon3D > &P) const
 Makes an Edge with a polygon 3d. More...
 
void MakeEdge (TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N, const Handle< Poly_Triangulation > &T) const
 makes an Edge polygon on Triangulation. More...
 
void MakeEdge (TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N, const Handle< Poly_Triangulation > &T, const TopLoc_Location &L) const
 makes an Edge polygon on Triangulation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom_Curve > &C, const Standard_Real Tol) const
 Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom_Curve > &C, const TopLoc_Location &L, const Standard_Real Tol) const
 Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C, const TopoDS_Face &F, const Standard_Real Tol) const
 Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C1, const Handle< Geom2d_Curve > &C2, const TopoDS_Face &F, const Standard_Real Tol) const
 Sets pcurves for the edge on the closed face. If <C1> or <C2> is a null handle, remove any existing pcurve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol) const
 Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol, const gp_Pnt2d &Pf, const gp_Pnt2d &Pl) const
 Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C1, const Handle< Geom2d_Curve > &C2, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol) const
 Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Geom2d_Curve > &C1, const Handle< Geom2d_Curve > &C2, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol, const gp_Pnt2d &Pf, const gp_Pnt2d &Pl) const
 Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon3D > &P) const
 Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon3D > &P, const TopLoc_Location &L) const
 Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N, const Handle< Poly_Triangulation > &T) const
 Changes an Edge polygon on Triangulation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N, const Handle< Poly_Triangulation > &T, const TopLoc_Location &L) const
 Changes an Edge polygon on Triangulation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N1, const Handle< Poly_PolygonOnTriangulation > &N2, const Handle< Poly_Triangulation > &T) const
 Changes an Edge polygon on Triangulation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_PolygonOnTriangulation > &N1, const Handle< Poly_PolygonOnTriangulation > &N2, const Handle< Poly_Triangulation > &T, const TopLoc_Location &L) const
 Changes an Edge polygon on Triangulation. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon2D > &P, const TopoDS_Face &S) const
 Changes Edge polygon on a face. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon2D > &P, const Handle< Geom_Surface > &S, const TopLoc_Location &T) const
 Changes Edge polygon on a face. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon2D > &P1, const Handle< Poly_Polygon2D > &P2, const TopoDS_Face &S) const
 Changes Edge polygons on a face. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Handle< Poly_Polygon2D > &P1, const Handle< Poly_Polygon2D > &P2, const Handle< Geom_Surface > &S, const TopLoc_Location &L) const
 Changes Edge polygons on a face. More...
 
void UpdateEdge (const TopoDS_Edge &E, const Standard_Real Tol) const
 Updates the edge tolerance. More...
 
void Continuity (const TopoDS_Edge &E, const TopoDS_Face &F1, const TopoDS_Face &F2, const GeomAbs_Shape C) const
 Sets the geometric continuity on the edge. More...
 
void Continuity (const TopoDS_Edge &E, const Handle< Geom_Surface > &S1, const Handle< Geom_Surface > &S2, const TopLoc_Location &L1, const TopLoc_Location &L2, const GeomAbs_Shape C) const
 Sets the geometric continuity on the edge. More...
 
void SameParameter (const TopoDS_Edge &E, const Standard_Boolean S) const
 Sets the same parameter flag for the edge <E>. More...
 
void SameRange (const TopoDS_Edge &E, const Standard_Boolean S) const
 Sets the same range flag for the edge <E>. More...
 
void Degenerated (const TopoDS_Edge &E, const Standard_Boolean D) const
 Sets the degenerated flag for the edge <E>. More...
 
void Range (const TopoDS_Edge &E, const Standard_Real First, const Standard_Real Last, const Standard_Boolean Only3d=Standard_False) const
 Sets the range of the 3d curve if Only3d=TRUE, otherwise sets the range to all the representations. More...
 
void Range (const TopoDS_Edge &E, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real First, const Standard_Real Last) const
 Sets the range of the edge on the pcurve on the surface. More...
 
void Range (const TopoDS_Edge &E, const TopoDS_Face &F, const Standard_Real First, const Standard_Real Last) const
 Sets the range of the edge on the pcurve on the face. More...
 
void Transfert (const TopoDS_Edge &Ein, const TopoDS_Edge &Eout) const
 Add to <Eout> the geometric representations of <Ein>. More...
 
void MakeVertex (TopoDS_Vertex &V) const
 Makes an udefined vertex without geometry. More...
 
void MakeVertex (TopoDS_Vertex &V, const gp_Pnt &P, const Standard_Real Tol) const
 Makes a vertex from a 3D point. More...
 
void UpdateVertex (const TopoDS_Vertex &V, const gp_Pnt &P, const Standard_Real Tol) const
 Sets a 3D point on the vertex. More...
 
void UpdateVertex (const TopoDS_Vertex &V, const Standard_Real P, const TopoDS_Edge &E, const Standard_Real Tol) const
 Sets the parameter for the vertex on the edge curves. More...
 
void UpdateVertex (const TopoDS_Vertex &V, const Standard_Real P, const TopoDS_Edge &E, const TopoDS_Face &F, const Standard_Real Tol) const
 Sets the parameter for the vertex on the edge pcurve on the face. More...
 
void UpdateVertex (const TopoDS_Vertex &V, const Standard_Real P, const TopoDS_Edge &E, const Handle< Geom_Surface > &S, const TopLoc_Location &L, const Standard_Real Tol) const
 Sets the parameter for the vertex on the edge pcurve on the surface. More...
 
void UpdateVertex (const TopoDS_Vertex &Ve, const Standard_Real U, const Standard_Real V, const TopoDS_Face &F, const Standard_Real Tol) const
 Sets the parameters for the vertex on the face. More...
 
void UpdateVertex (const TopoDS_Vertex &V, const Standard_Real Tol) const
 Updates the vertex tolerance. More...
 
void Transfert (const TopoDS_Edge &Ein, const TopoDS_Edge &Eout, const TopoDS_Vertex &Vin, const TopoDS_Vertex &Vout) const
 Transfert the parameters of Vin on Ein as the parameter of Vout on Eout. More...
 
- Public Member Functions inherited from TopoDS_Builder
void MakeWire (TopoDS_Wire &W) const
 Make an empty Wire. More...
 
void MakeShell (TopoDS_Shell &S) const
 Make an empty Shell. More...
 
void MakeSolid (TopoDS_Solid &S) const
 Make a Solid covering the whole 3D space. More...
 
void MakeCompSolid (TopoDS_CompSolid &C) const
 Make an empty Composite Solid. More...
 
void MakeCompound (TopoDS_Compound &C) const
 Make an empty Compound. More...
 
void Add (TopoDS_Shape &S, const TopoDS_Shape &C) const
 Add the Shape C in the Shape S. Exceptions. More...
 
void Remove (TopoDS_Shape &S, const TopoDS_Shape &C) const
 Remove the Shape C from the Shape S. Exceptions TopoDS_FrozenShape if S is frozen and cannot be modified. More...
 

Additional Inherited Members

- Protected Member Functions inherited from TopoDS_Builder
void MakeShape (TopoDS_Shape &S, const Handle< TopoDS_TShape > &T) const
 The basic method to make a Shape, used by all the Make methods. More...
 

Detailed Description

A framework providing advanced tolerance control. It is used to build Shapes. If tolerance control is required, you are advised to:

  1. build a default precision for topology, using the classes provided in the BRepAPI package
  2. update the tolerance of the resulting shape. Note that only vertices, edges and faces have meaningful tolerance control. The tolerance value must always comply with the condition that face tolerances are more restrictive than edge tolerances which are more restrictive than vertex tolerances. In other words: Tol(Vertex) >= Tol(Edge) >= Tol(Face). Other rules in setting tolerance include:

Member Function Documentation

void BRep_Builder::Continuity ( const TopoDS_Edge E,
const TopoDS_Face F1,
const TopoDS_Face F2,
const GeomAbs_Shape  C 
) const

Sets the geometric continuity on the edge.

void BRep_Builder::Continuity ( const TopoDS_Edge E,
const Handle< Geom_Surface > &  S1,
const Handle< Geom_Surface > &  S2,
const TopLoc_Location L1,
const TopLoc_Location L2,
const GeomAbs_Shape  C 
) const

Sets the geometric continuity on the edge.

void BRep_Builder::Degenerated ( const TopoDS_Edge E,
const Standard_Boolean  D 
) const

Sets the degenerated flag for the edge <E>.

void BRep_Builder::MakeEdge ( TopoDS_Edge E) const

Makes an undefined Edge (no geometry).

void BRep_Builder::MakeEdge ( TopoDS_Edge E,
const Handle< Geom_Curve > &  C,
const Standard_Real  Tol 
) const

Makes an Edge with a curve.

void BRep_Builder::MakeEdge ( TopoDS_Edge E,
const Handle< Geom_Curve > &  C,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Makes an Edge with a curve and a location.

void BRep_Builder::MakeEdge ( TopoDS_Edge E,
const Handle< Poly_Polygon3D > &  P 
) const

Makes an Edge with a polygon 3d.

void BRep_Builder::MakeEdge ( TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N,
const Handle< Poly_Triangulation > &  T 
) const

makes an Edge polygon on Triangulation.

void BRep_Builder::MakeEdge ( TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N,
const Handle< Poly_Triangulation > &  T,
const TopLoc_Location L 
) const

makes an Edge polygon on Triangulation.

void BRep_Builder::MakeFace ( TopoDS_Face F) const

Makes an undefined Face.

void BRep_Builder::MakeFace ( TopoDS_Face F,
const Handle< Geom_Surface > &  S,
const Standard_Real  Tol 
) const

Makes a Face with a surface.

void BRep_Builder::MakeFace ( TopoDS_Face F,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Makes a Face with a surface and a location.

void BRep_Builder::MakeFace ( TopoDS_Face F,
const Handle< Poly_Triangulation > &  T 
) const

Makes a Face with a triangulation. The triangulation is in the same reference system than the TFace.

void BRep_Builder::MakeVertex ( TopoDS_Vertex V) const

Makes an udefined vertex without geometry.

void BRep_Builder::MakeVertex ( TopoDS_Vertex V,
const gp_Pnt P,
const Standard_Real  Tol 
) const

Makes a vertex from a 3D point.

void BRep_Builder::NaturalRestriction ( const TopoDS_Face F,
const Standard_Boolean  N 
) const

Sets the NaturalRestriction flag of the face.

void BRep_Builder::Range ( const TopoDS_Edge E,
const Standard_Real  First,
const Standard_Real  Last,
const Standard_Boolean  Only3d = Standard_False 
) const

Sets the range of the 3d curve if Only3d=TRUE, otherwise sets the range to all the representations.

void BRep_Builder::Range ( const TopoDS_Edge E,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  First,
const Standard_Real  Last 
) const

Sets the range of the edge on the pcurve on the surface.

void BRep_Builder::Range ( const TopoDS_Edge E,
const TopoDS_Face F,
const Standard_Real  First,
const Standard_Real  Last 
) const

Sets the range of the edge on the pcurve on the face.

void BRep_Builder::SameParameter ( const TopoDS_Edge E,
const Standard_Boolean  S 
) const

Sets the same parameter flag for the edge <E>.

void BRep_Builder::SameRange ( const TopoDS_Edge E,
const Standard_Boolean  S 
) const

Sets the same range flag for the edge <E>.

void BRep_Builder::Transfert ( const TopoDS_Edge Ein,
const TopoDS_Edge Eout 
) const

Add to <Eout> the geometric representations of <Ein>.

void BRep_Builder::Transfert ( const TopoDS_Edge Ein,
const TopoDS_Edge Eout,
const TopoDS_Vertex Vin,
const TopoDS_Vertex Vout 
) const

Transfert the parameters of Vin on Ein as the parameter of Vout on Eout.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom_Curve > &  C,
const Standard_Real  Tol 
) const

Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom_Curve > &  C,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C,
const TopoDS_Face F,
const Standard_Real  Tol 
) const

Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C1,
const Handle< Geom2d_Curve > &  C2,
const TopoDS_Face F,
const Standard_Real  Tol 
) const

Sets pcurves for the edge on the closed face. If <C1> or <C2> is a null handle, remove any existing pcurve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol,
const gp_Pnt2d Pf,
const gp_Pnt2d Pl 
) const

Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C1,
const Handle< Geom2d_Curve > &  C2,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Geom2d_Curve > &  C1,
const Handle< Geom2d_Curve > &  C2,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol,
const gp_Pnt2d Pf,
const gp_Pnt2d Pl 
) const

Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon3D > &  P 
) const

Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon3D > &  P,
const TopLoc_Location L 
) const

Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N,
const Handle< Poly_Triangulation > &  T 
) const

Changes an Edge polygon on Triangulation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N,
const Handle< Poly_Triangulation > &  T,
const TopLoc_Location L 
) const

Changes an Edge polygon on Triangulation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N1,
const Handle< Poly_PolygonOnTriangulation > &  N2,
const Handle< Poly_Triangulation > &  T 
) const

Changes an Edge polygon on Triangulation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_PolygonOnTriangulation > &  N1,
const Handle< Poly_PolygonOnTriangulation > &  N2,
const Handle< Poly_Triangulation > &  T,
const TopLoc_Location L 
) const

Changes an Edge polygon on Triangulation.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon2D > &  P,
const TopoDS_Face S 
) const

Changes Edge polygon on a face.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon2D > &  P,
const Handle< Geom_Surface > &  S,
const TopLoc_Location T 
) const

Changes Edge polygon on a face.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon2D > &  P1,
const Handle< Poly_Polygon2D > &  P2,
const TopoDS_Face S 
) const

Changes Edge polygons on a face.

A null Polygon removes the 2d Polygon.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Handle< Poly_Polygon2D > &  P1,
const Handle< Poly_Polygon2D > &  P2,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L 
) const

Changes Edge polygons on a face.

A null Polygon removes the 2d Polygon.

void BRep_Builder::UpdateEdge ( const TopoDS_Edge E,
const Standard_Real  Tol 
) const

Updates the edge tolerance.

void BRep_Builder::UpdateFace ( const TopoDS_Face F,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Updates the face F using the tolerance value Tol, surface S and location Location.

void BRep_Builder::UpdateFace ( const TopoDS_Face F,
const Handle< Poly_Triangulation > &  T 
) const

Changes a face triangulation.

A null Triangulation removes the triangulation.

void BRep_Builder::UpdateFace ( const TopoDS_Face F,
const Standard_Real  Tol 
) const

Updates the face Tolerance.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex V,
const gp_Pnt P,
const Standard_Real  Tol 
) const

Sets a 3D point on the vertex.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex V,
const Standard_Real  P,
const TopoDS_Edge E,
const Standard_Real  Tol 
) const

Sets the parameter for the vertex on the edge curves.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex V,
const Standard_Real  P,
const TopoDS_Edge E,
const TopoDS_Face F,
const Standard_Real  Tol 
) const

Sets the parameter for the vertex on the edge pcurve on the face.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex V,
const Standard_Real  P,
const TopoDS_Edge E,
const Handle< Geom_Surface > &  S,
const TopLoc_Location L,
const Standard_Real  Tol 
) const

Sets the parameter for the vertex on the edge pcurve on the surface.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex Ve,
const Standard_Real  U,
const Standard_Real  V,
const TopoDS_Face F,
const Standard_Real  Tol 
) const

Sets the parameters for the vertex on the face.

void BRep_Builder::UpdateVertex ( const TopoDS_Vertex V,
const Standard_Real  Tol 
) const

Updates the vertex tolerance.


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