BRep
OCCT package BRep: BRep_Builder, BRep_Curve3D, BRep_CurveOn2Surfaces, BRep_CurveOnClosedSurface, and 17 more bound classes.
BRep_Builder
A framework providing advanced tolerance control. It is used to build Shapes. If tolerance control is required, you are advised to:
- build a default precision for topology, using the classes provided in the BRepAPI package
- 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:
- you can open up tolerance but should never restrict it
- an edge cannot be included within the fusion of the tolerance spheres of two vertices
Constructors(1)
Instance methods(52)
- MakeFace(F: TopoDS_Face): void
Makes an undefined Face.
Parameters (1)F—Mutated in place; read the updated value from this argument after the call.
- MakeFace(theFace: TopoDS_Face, theTriangulation: Poly_Triangulation): void
Makes a theFace with a single triangulation. The triangulation is in the same reference system than the TFace.
Parameters (2)theFace—Mutated in place; read the updated value from this argument after the call.theTriangulation
- MakeFace(F: TopoDS_Face, S: Geom_Surface, Tol: number): void
Makes a Face with a surface.
Parameters (3)F—Mutated in place; read the updated value from this argument after the call.STol
- MakeFace(theFace: TopoDS_Face, theTriangulations: NCollection_List_handle_Poly_Triangulation, theActiveTriangulation: Poly_Triangulation): void
Makes a Face with a list of triangulations and active one. Use NULL active triangulation to set the first triangulation in list as active. The triangulations is in the same reference system than the TFace.
Parameters (3)theFace—Mutated in place; read the updated value from this argument after the call.theTriangulationstheActiveTriangulation
- MakeFace(F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: number): void
Makes a Face with a surface and a location.
Parameters (4)F—Mutated in place; read the updated value from this argument after the call.SLTol
- UpdateFace(F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: number): void
Updates the face F using the tolerance value Tol, surface S and location Location.
Parameters (4)FSLTol
- UpdateFace(theFace: TopoDS_Face, theTriangulation: Poly_Triangulation, theToReset: boolean): void
Changes a face triangulation. A NULL theTriangulation removes face triangulations. If theToReset is TRUE face triangulations will be reset to new list with only one input triangulation that will be active. Else if theTriangulation is contained in internal triangulations list it will be made active, else the active triangulation will be replaced to theTriangulation one.
Parameters (3)theFacetheTriangulationtheToReset
- UpdateFace(F: TopoDS_Face, Tol: number): void
Updates the face Tolerance.
Parameters (2)FTol
- NaturalRestriction(F: TopoDS_Face, N: boolean): void
Sets the NaturalRestriction flag of the face.
Parameters (2)FN
- MakeEdge(E: TopoDS_Edge): void
Makes an undefined Edge (no geometry).
Parameters (1)E—Mutated in place; read the updated value from this argument after the call.
- MakeEdge(E: TopoDS_Edge, P: Poly_Polygon3D): void
Makes an Edge with a polygon 3d.
Parameters (2)E—Mutated in place; read the updated value from this argument after the call.P
- MakeEdge(E: TopoDS_Edge, C: Geom_Curve, Tol: number): void
Makes an Edge with a curve.
Parameters (3)E—Mutated in place; read the updated value from this argument after the call.CTol
- MakeEdge(E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation): void
makes an Edge polygon on Triangulation.
Parameters (3)E—Mutated in place; read the updated value from this argument after the call.NT
- MakeEdge(E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: number): void
Makes an Edge with a curve and a location.
Parameters (4)E—Mutated in place; read the updated value from this argument after the call.CLTol
- MakeEdge(E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location): void
makes an Edge polygon on Triangulation.
Parameters (4)E—Mutated in place; read the updated value from this argument after the call.NTL
- UpdateEdge(E: TopoDS_Edge, P: Poly_Polygon3D): void
Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.
Parameters (2)EP
- UpdateEdge(E: TopoDS_Edge, Tol: number): void
Updates the edge tolerance.
Parameters (2)ETol
- UpdateEdge(E: TopoDS_Edge, C: Geom_Curve, Tol: number): void
Sets a 3D curve for the edge. If
is a null handle, remove any existing 3d curve.Parameters (3)ECTol
- UpdateEdge(E: TopoDS_Edge, P: Poly_Polygon3D, L: TopLoc_Location): void
Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.
Parameters (3)EPL
- UpdateEdge(E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation): void
Changes an Edge polygon on Triangulation.
Parameters (3)ENT
- UpdateEdge(E: TopoDS_Edge, P: Poly_Polygon2D, S: TopoDS_Face): void
Changes Edge polygon on a face.
Parameters (3)EPS
- UpdateEdge(E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: number): void
Sets a 3D curve for the edge. If
is a null handle, remove any existing 3d curve.Parameters (4)ECLTol
- UpdateEdge(E: TopoDS_Edge, C: Geom2d_Curve, F: TopoDS_Face, Tol: number): void
Sets a pcurve for the edge on the face. If
is a null handle, remove any existing pcurve.Parameters (4)ECFTol
- UpdateEdge(E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location): void
Changes an Edge polygon on Triangulation.
Parameters (4)ENTL
- UpdateEdge(E: TopoDS_Edge, N1: Poly_PolygonOnTriangulation, N2: Poly_PolygonOnTriangulation, T: Poly_Triangulation): void
Changes an Edge polygon on Triangulation.
Parameters (4)EN1N2T
- UpdateEdge(E: TopoDS_Edge, P: Poly_Polygon2D, S: Geom_Surface, T: TopLoc_Location): void
Changes Edge polygon on a face.
Parameters (4)EPST
- UpdateEdge(E: TopoDS_Edge, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: TopoDS_Face): void
Changes Edge polygons on a face.
A null Polygon removes the 2d Polygon.Parameters (4)EP1P2S
- UpdateEdge(E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, F: TopoDS_Face, Tol: number): void
Sets pcurves for the edge on the closed face. If <C1> or <C2> is a null handle, remove any existing pcurve.
Parameters (5)EC1C2FTol
- UpdateEdge(E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: number): void
Sets a pcurve for the edge on the face. If
is a null handle, remove any existing pcurve.Parameters (5)ECSLTol
- UpdateEdge(E: TopoDS_Edge, N1: Poly_PolygonOnTriangulation, N2: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location): void
Changes an Edge polygon on Triangulation.
Parameters (5)EN1N2TL
- UpdateEdge(E: TopoDS_Edge, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location): void
Changes Edge polygons on a face.
A null Polygon removes the 2d Polygon.Parameters (5)EP1P2SL
- UpdateEdge(E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: number): void
Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve.
Parameters (6)EC1C2SLTol
- UpdateEdge(E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: number, Pf: gp_Pnt2d, Pl: gp_Pnt2d): void
Sets a pcurve for the edge on the face. If
is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation.Parameters (7)ECSLTolPfPl
- UpdateEdge(E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: number, Pf: gp_Pnt2d, Pl: gp_Pnt2d): void
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.
Parameters (8)EC1C2SLTolPfPl
- Continuity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, C: GeomAbs_Shape): void
Sets the geometric continuity on the edge.
Parameters (4)EF1F2C
- Continuity(E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location, C: GeomAbs_Shape): void
Sets the geometric continuity on the edge.
Parameters (6)ES1S2L1L2C
- SameParameter(E: TopoDS_Edge, S: boolean): void
Sets the same parameter flag for the edge <E>.
Parameters (2)ES
- SameRange(E: TopoDS_Edge, S: boolean): void
Sets the same range flag for the edge <E>.
Parameters (2)ES
- Degenerated(E: TopoDS_Edge, D: boolean): void
Sets the degenerated flag for the edge <E>.
Parameters (2)ED
- Range(E: TopoDS_Edge, First: number, Last: number, Only3d: boolean): void
Sets the range of the 3d curve if Only3d=TRUE, otherwise sets the range to all the representations.
Parameters (4)EFirstLastOnly3d
- Range(E: TopoDS_Edge, F: TopoDS_Face, First: number, Last: number): void
Sets the range of the edge on the pcurve on the face.
Parameters (4)EFFirstLast
- Range(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, First: number, Last: number): void
Sets the range of the edge on the pcurve on the surface.
Parameters (5)ESLFirstLast
- Transfert(Ein: TopoDS_Edge, Eout: TopoDS_Edge): void
Add to <Eout> the geometric representations of <Ein>.
Parameters (2)EinEout
- Transfert(Ein: TopoDS_Edge, Eout: TopoDS_Edge, Vin: TopoDS_Vertex, Vout: TopoDS_Vertex): void
Transfert the parameters of Vin on Ein as the parameter of Vout on Eout.
Parameters (4)EinEoutVinVout
- MakeVertex(V: TopoDS_Vertex): void
Makes an udefined vertex without geometry.
Parameters (1)V—Mutated in place; read the updated value from this argument after the call.
- MakeVertex(V: TopoDS_Vertex, P: gp_Pnt, Tol: number): void
Makes a vertex from a 3D point.
Parameters (3)V—Mutated in place; read the updated value from this argument after the call.PTol
- UpdateVertex(V: TopoDS_Vertex, Tol: number): void
Updates the vertex tolerance.
Parameters (2)VTol
- UpdateVertex(V: TopoDS_Vertex, P: gp_Pnt, Tol: number): void
Sets a 3D point on the vertex.
Parameters (3)VPTol
- UpdateVertex(V: TopoDS_Vertex, P: number, E: TopoDS_Edge, Tol: number): void
Sets the parameter for the vertex on the edge curves.
Parameters (4)VPETol
- UpdateVertex(V: TopoDS_Vertex, P: number, E: TopoDS_Edge, F: TopoDS_Face, Tol: number): void
Sets the parameter for the vertex on the edge pcurve on the face.
Parameters (5)VPEFTol
- UpdateVertex(Ve: TopoDS_Vertex, U: number, V: number, F: TopoDS_Face, Tol: number): void
Sets the parameters for the vertex on the face.
Parameters (5)VeUVFTol
- UpdateVertex(V: TopoDS_Vertex, P: number, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, Tol: number): void
Sets the parameter for the vertex on the edge pcurve on the surface.
Parameters (6)VPESLTol
BRep_Curve3D
Representation of a curve by a 3D curve.
Constructors(1)
- constructor(C: Geom_Curve, L: TopLoc_Location): BRep_Curve3DParameters (2)
CL
Static methods(2)
- get_type_name(): string
Instance methods(6)
Computes the point at parameter U.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
- IsCurve3D(): boolean
Returns True.
- Curve3D(C: Geom_Curve): voidParameters (1)
C
Return a copy of this representation.
BRep_CurveOn2Surfaces
Defines a continuity between two surfaces.
Constructors(1)
- constructor(S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location, C: GeomAbs_Shape): BRep_CurveOn2SurfacesParameters (5)
S1S2L1L2C
Static methods(2)
- get_type_name(): string
Instance methods(10)
- IsRegularity(): boolean
Returns True.
- IsRegularity(S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location): boolean
A curve on two surfaces (continuity).
Parameters (4)S1S2L1L2
Raises an error.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
- Continuity(C: GeomAbs_Shape): voidParameters (1)
C
Return a copy of this representation.
BRep_CurveOnClosedSurface
Representation of a curve by two pcurves on a closed surface.
Constructors(1)
- constructor(PC1: Geom2d_Curve, PC2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, C: GeomAbs_Shape): BRep_CurveOnClosedSurfaceParameters (5)
PC1PC2SLC
Static methods(2)
- get_type_name(): string
Instance methods(14)
- SetUVPoints2(P1: gp_Pnt2d, P2: gp_Pnt2d): voidParameters (2)
P1P2
- Parameters (2)
P1P2
- IsCurveOnClosedSurface(): boolean
Returns True.
- IsRegularity(): boolean
Returns True.
- IsRegularity(S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location): boolean
A curve on two surfaces (continuity).
Parameters (4)S1S2L1L2
- PCurve2(C: Geom2d_Curve): voidParameters (1)
C
Returns
Surface().Returns
Location().- Continuity(C: GeomAbs_Shape): voidParameters (1)
C
Return a copy of this representation.
- Update(): void
Recomputes any derived data after a modification. This is called when the range is modified.
BRep_CurveOnSurface
Representation of a curve by a curve in the parametric space of a surface.
Constructors(1)
- constructor(PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location): BRep_CurveOnSurfaceParameters (3)
PCSL
Static methods(2)
- get_type_name(): string
Instance methods(11)
- SetUVPoints(P1: gp_Pnt2d, P2: gp_Pnt2d): voidParameters (2)
P1P2
- Parameters (2)
P1P2
Computes the point at parameter U.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
- IsCurveOnSurface(): boolean
Returns True.
- IsCurveOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
A curve in the parametric space of a surface.
Parameters (2)SL
- PCurve(C: Geom2d_Curve): voidParameters (1)
C
Return a copy of this representation.
- Update(): void
Recomputes any derived data after a modification. This is called when the range is modified.
BRep_CurveRepresentation
Root class for the curve representations. Contains a location.
Static methods(2)
- get_type_name(): string
Instance methods(39)
- IsCurve3D(): boolean
A 3D curve representation.
- IsCurveOnSurface(): boolean
A curve in the parametric space of a surface.
- IsCurveOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
Is it a curve in the parametric space of with location <L>.
Parameters (2)SL
- IsRegularity(): boolean
A continuity between two surfaces.
- IsRegularity(S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location): boolean
Is it a regularity between <S1> and <S2> with location <L1> and <L2>.
Parameters (4)S1S2L1L2
- IsCurveOnClosedSurface(): boolean
A curve with two parametric curves on the same surface.
- IsPolygon3D(): boolean
A 3D polygon representation.
- IsPolygonOnTriangulation(): boolean
A representation by an array of nodes on a triangulation.
- IsPolygonOnTriangulation(T: Poly_Triangulation, L: TopLoc_Location): boolean
Is it a polygon in the definition of <T> with location <L>.
Parameters (2)TL
- IsPolygonOnClosedTriangulation(): boolean
A representation by two arrays of nodes on a triangulation.
- IsPolygonOnSurface(): boolean
A polygon in the parametric space of a surface.
- IsPolygonOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
Is it a polygon in the parametric space of with location <L>.
Parameters (2)SL
- IsPolygonOnClosedSurface(): boolean
Two 2D polygon representations in the parametric space of a surface.
- Location(L: TopLoc_Location): voidParameters (1)
L
- Curve3D(C: Geom_Curve): voidParameters (1)
C
- PCurve(C: Geom2d_Curve): voidParameters (1)
C
- PCurve2(C: Geom2d_Curve): voidParameters (1)
C
- Polygon3D(P: Poly_Polygon3D): voidParameters (1)
P
- Polygon(P: Poly_Polygon2D): voidParameters (1)
P
- Polygon2(P: Poly_Polygon2D): voidParameters (1)
P
- Parameters (1)
P
- Parameters (1)
P2
- Continuity(C: GeomAbs_Shape): voidParameters (1)
C
Return a copy of this representation.
BRep_GCurve
Root class for the geometric curves representation. Contains a range. Contains a first and a last parameter.
Static methods(2)
- get_type_name(): string
Instance methods(9)
- SetRange(First: number, Last: number): voidParameters (2)
FirstLast
- Range(First: number, Last: number): { First: number; Last: number }Parameters (2)
FirstLast
- First(): number
- First(F: number): voidParameters (1)
F
- Last(): number
- Last(L: number): voidParameters (1)
L
Computes the point at parameter U.
Parameters (2)UP—Mutated in place; read the updated value from this argument after the call.
- Update(): void
Recomputes any derived data after a modification. This is called when the range is modified.
BRep_PointOnCurve
Representation by a parameter on a 3D curve.
Constructors(1)
- constructor(P: number, C: Geom_Curve, L: TopLoc_Location): BRep_PointOnCurveParameters (3)
PCL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPointOnCurve(): boolean
Returns True.
- IsPointOnCurve(C: Geom_Curve, L: TopLoc_Location): boolean
A point on the curve
.Parameters (2)CL
- Curve(): Geom_Curve
- Curve(C: Geom_Curve): voidParameters (1)
C
BRep_PointOnCurveOnSurface
Representation by a parameter on a curve on a surface.
Constructors(1)
- constructor(P: number, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location): BRep_PointOnCurveOnSurfaceParameters (4)
PCSL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPointOnCurveOnSurface(): boolean
Returns True.
- IsPointOnCurveOnSurface(PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location): boolean
A point on the 2d curve <PC> on the surface .
Parameters (3)PCSL
- PCurve(C: Geom2d_Curve): voidParameters (1)
C
BRep_PointOnSurface
Representation by two parameters on a surface.
Constructors(1)
- constructor(P1: number, P2: number, S: Geom_Surface, L: TopLoc_Location): BRep_PointOnSurfaceParameters (4)
P1P2SL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPointOnSurface(): boolean
A point on a surface.
- IsPointOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
A point on the surface .
Parameters (2)SL
- Parameter2(): number
- Parameter2(P: number): voidParameters (1)
P
BRep_PointRepresentation
Root class for the points representations. Contains a location and a parameter.
Static methods(2)
- get_type_name(): string
Instance methods(19)
- IsPointOnCurve(): boolean
A point on a 3d curve.
- IsPointOnCurve(C: Geom_Curve, L: TopLoc_Location): boolean
A point on the curve
.Parameters (2)CL
- IsPointOnCurveOnSurface(): boolean
A point on a 2d curve on a surface.
- IsPointOnCurveOnSurface(PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location): boolean
A point on the 2d curve <PC> on the surface .
Parameters (3)PCSL
- IsPointOnSurface(): boolean
A point on a surface.
- IsPointOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
A point on the surface .
Parameters (2)SL
- Location(L: TopLoc_Location): voidParameters (1)
L
- Parameter(): number
- Parameter(P: number): voidParameters (1)
P
- Parameter2(): number
- Parameter2(P: number): voidParameters (1)
P
- Curve(): Geom_Curve
- Curve(C: Geom_Curve): voidParameters (1)
C
- PCurve(C: Geom2d_Curve): voidParameters (1)
C
- Surface(S: Geom_Surface): voidParameters (1)
S
BRep_PointsOnSurface
Root for points on surface.
Static methods(2)
- get_type_name(): string
Instance methods(3)
- Surface(S: Geom_Surface): voidParameters (1)
S
BRep_Polygon3D
Representation by a 3D polygon.
Constructors(1)
- Parameters (2)
PL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPolygon3D(): boolean
Returns True.
- Polygon3D(P: Poly_Polygon3D): voidParameters (1)
P
Return a copy of this representation.
BRep_PolygonOnClosedSurface
Representation by two 2d polygons in the parametric space of a surface.
Constructors(1)
- constructor(P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location): BRep_PolygonOnClosedSurfaceParameters (4)
P1P2SL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPolygonOnClosedSurface(): boolean
returns True.
- Polygon2(P: Poly_Polygon2D): voidParameters (1)
P
Return a copy of this representation.
BRep_PolygonOnClosedTriangulation
A representation by two arrays of nodes on a triangulation.
Constructors(1)
- constructor(P1: Poly_PolygonOnTriangulation, P2: Poly_PolygonOnTriangulation, Tr: Poly_Triangulation, L: TopLoc_Location): BRep_PolygonOnClosedTriangulationParameters (4)
P1P2TrL
Static methods(2)
- get_type_name(): string
Instance methods(5)
- IsPolygonOnClosedTriangulation(): boolean
Returns True.
- Parameters (1)
P2
Return a copy of this representation.
BRep_PolygonOnSurface
Representation of a 2D polygon in the parametric space of a surface.
Constructors(1)
- Parameters (3)
PSL
Static methods(2)
- get_type_name(): string
Instance methods(7)
- IsPolygonOnSurface(): boolean
A 2D polygon representation in the parametric space of a surface.
- IsPolygonOnSurface(S: Geom_Surface, L: TopLoc_Location): boolean
A 2D polygon representation in the parametric space of a surface.
Parameters (2)SL
- Polygon(P: Poly_Polygon2D): voidParameters (1)
P
Return a copy of this representation.
BRep_PolygonOnTriangulation
A representation by an array of nodes on a triangulation.
Constructors(1)
- constructor(P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location): BRep_PolygonOnTriangulationParameters (3)
PTL
Static methods(2)
- get_type_name(): string
Instance methods(7)
- IsPolygonOnTriangulation(): boolean
returns True.
- IsPolygonOnTriangulation(T: Poly_Triangulation, L: TopLoc_Location): boolean
Is it a polygon in the definition of <T> with location <L>.
Parameters (2)TL
returns True.
Parameters (1)P
Return a copy of this representation.
BRep_TEdge
The TEdge from BRep is inherited from the TEdge from TopoDS. It contains the geometric data.
The TEdge contains a:
- tolerance.
- same parameter flag.
- same range flag.
- Degenerated flag.
- list of curve representation.
Constructors(1)
Creates an empty TEdge.
Static methods(2)
- get_type_name(): string
Instance methods(13)
- Tolerance(): number
- Tolerance(T: number): voidParameters (1)
T
- UpdateTolerance(T: number): void
Sets the tolerance to the max of <T> and the current tolerance.
Parameters (1)T
- SameParameter(): boolean
- SameParameter(S: boolean): voidParameters (1)
S
- SameRange(): boolean
- SameRange(S: boolean): voidParameters (1)
S
- Degenerated(): boolean
- Degenerated(S: boolean): voidParameters (1)
S
Returns a copy of the TShape with no sub-shapes.
BRep_TFace
The Tface from BRep is based on the TFace from TopoDS. The TFace contains:
- A surface, a tolerance and a Location.
- A NaturalRestriction flag, when this flag is True the boundary of the face is known to be the parametric space (Umin, UMax, VMin, VMax).
- An optional list of triangulations. If there are any triangulations the surface can be absent.
The Location is used for the Surface.
The triangulation is in the same reference system than the TFace. A point on mySurface must be transformed with myLocation, but not a point on the triangulation.
The Surface may be shared by different TFaces but not the Triangulation, because the Triangulation may be modified by the edges.
Constructors(1)
Creates an empty TFace.
Static methods(2)
- get_type_name(): string
Instance methods(16)
Returns face surface.
- Surface(theSurface: Geom_Surface): void
Sets surface for this face.
Parameters (1)theSurface
Returns the face location.
- Location(theLocation: TopLoc_Location): void
Sets the location for this face.
Parameters (1)theLocation
- Tolerance(): number
Returns the face tolerance.
- Tolerance(theTolerance: number): void
Sets the tolerance for this face.
Parameters (1)theTolerance
- NaturalRestriction(): boolean
Returns TRUE if the boundary of this face is known to be the parametric space (Umin, UMax, VMin, VMax).
- NaturalRestriction(theRestriction: boolean): void
Sets the flag that is TRUE if the boundary of this face is known to be the parametric space.
Parameters (1)theRestriction
- Triangulation(thePurpose: number): Poly_Triangulation
Returns the triangulation of this face according to the mesh purpose.
Parameters (1)thePurpose—a mesh purpose to find appropriate triangulation (NONE by default).
Returnsan active triangulation in case of NONE purpose, the first triangulation appropriate for the input purpose, just the first triangulation if none matching other criteria and input purpose is AnyFallback or null handle if there is no any suitable triangulation.
- Triangulation(theTriangulation: Poly_Triangulation, theToReset: boolean): void
Sets input triangulation for this face.
Parameters (2)theTriangulation—triangulation to be settheToReset—flag to reset triangulations list to new list with only one input triangulation. If theTriangulation is NULL internal list of triangulations will be cleared and active triangulation will be nullified. If theToReset is TRUE internal list of triangulations will be reset to new list with only one input triangulation that will be active. Else if input triangulation is contained in internal triangulations list it will be made active, else the active triangulation will be replaced to input one.
Returns a copy of the TShape with no sub-shapes. The new Face has no triangulation.
Returns the list of available face triangulations.
- Triangulations(theTriangulations: NCollection_List_handle_Poly_Triangulation, theActiveTriangulation: Poly_Triangulation): void
Sets input list of triangulations and currently active triangulation for this face. If list is empty internal list of triangulations will be cleared and active triangulation will be nullified. Else this list will be saved and the input active triangulation be saved as active. Use NULL active triangulation to set the first triangulation in list as active. Note: the method throws exception if there is any NULL triangulation in input list or if this list doesn't contain input active triangulation.
Parameters (2)theTriangulationstheActiveTriangulation
- NbTriangulations(): number
Returns number of available face triangulations.
Returns current active triangulation.
BRep_Tool
Provides class methods to access to the geometry of BRep shapes.
Constructors(1)
Static methods(52)
- IsClosed(S: TopoDS_Shape): boolean
If S is Shell, returns True if it has no free boundaries (edges). If S is Wire, returns True if it has no free ends (vertices). (Internal and External sub-shepes are ignored in these checks) If S is Edge, returns True if its vertices are the same. For other shape types returns S.Closed().
Parameters (1)S
- IsClosed(E: TopoDS_Edge, F: TopoDS_Face): boolean
Returns True if <E> has two PCurves in the parametric space of <F>. i.e. <F> is on a closed surface and <E> is on the closing curve.
Parameters (2)EF
- IsClosed(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location): boolean
Returns True if <E> has two PCurves in the parametric space of . i.e. is a closed surface and <E> is on the closing curve.
Parameters (3)ESL
- IsClosed(E: TopoDS_Edge, T: Poly_Triangulation, L: TopLoc_Location): boolean
Returns True if <E> has two arrays of indices in the triangulation <T>.
Parameters (3)ETL
- Surface(F: TopoDS_Face, L: TopLoc_Location): Geom_Surface
Returns the geometric surface of the face. Returns in <L> the location for the surface.
Parameters (2)FL—Mutated in place; read the updated value from this argument after the call.
Returns the geometric surface of the face. It can be a copy if there is a Location.
Parameters (1)F
- Triangulation(theFace: TopoDS_Face, theLocation: TopLoc_Location, theMeshPurpose: number): Poly_Triangulation
Returns the triangulation of the face according to the mesh purpose.
Parameters (3)theFace—the input face to find triangulation.theLocation—the face location. Mutated in place; read the updated value from this argument after the call.theMeshPurpose—a mesh purpose to find appropriate triangulation (NONE by default).
Returnsan active triangulation in case of NONE purpose, the first triangulation appropriate for the input purpose, just the first triangulation if none matching other criteria and input purpose is AnyFallback or null handle if there is no any suitable triangulation.
- Triangulations(theFace: TopoDS_Face, theLocation: TopLoc_Location): NCollection_List_handle_Poly_Triangulation
Returns all triangulations of the face.
Parameters (2)theFace—the input face.theLocation—the face location. Mutated in place; read the updated value from this argument after the call.
Returnslist of all available face triangulations.
- Tolerance(F: TopoDS_Face): number
Returns the tolerance of the face.
Parameters (1)F
- Tolerance(E: TopoDS_Edge): number
Returns the tolerance for <E>.
Parameters (1)E
- Tolerance(V: TopoDS_Vertex): number
Returns the tolerance.
Parameters (1)V
- NaturalRestriction(F: TopoDS_Face): boolean
Returns the NaturalRestriction flag of the face.
Parameters (1)F
- IsGeometric(F: TopoDS_Face): boolean
Returns True if <F> has a surface, false otherwise.
Parameters (1)F
- IsGeometric(E: TopoDS_Edge): boolean
Returns True if <E> is a 3d curve or a curve on surface.
Parameters (1)E
- Curve(E: TopoDS_Edge, L: TopLoc_Location, First: number, Last: number): { returnValue: Geom_Curve; First: number; Last: number; [Symbol.dispose](): void }
Returns the 3D curve of the edge. May be a Null handle. Returns in <L> the location for the curve. In <First> and <Last> the parameter range.
Parameters (4)EL—Mutated in place; read the updated value from this argument after the call.FirstLast
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- Curve(E: TopoDS_Edge, First: number, Last: number): { returnValue: Geom_Curve; First: number; Last: number; [Symbol.dispose](): void }
Returns the 3D curve of the edge. May be a Null handle. In <First> and <Last> the parameter range. It can be a copy if there is a Location.
Parameters (3)EFirstLast
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
Returns the 3D polygon of the edge. May be a Null handle. Returns in <L> the location for the polygon.
Parameters (2)EL—Mutated in place; read the updated value from this argument after the call.
- CurveOnSurface(E: TopoDS_Edge, L: TopLoc_Location, First: number, Last: number): { C: Geom2d_Curve; S: Geom_Surface; First: number; Last: number; [Symbol.dispose](): void }
Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
Parameters (4)EL—Mutated in place; read the updated value from this argument after the call.FirstLast
ReturnsA result object with fields:
C: owned by the returned envelope.S: owned by the returned envelope.First: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- CurveOnSurface(E: TopoDS_Edge, F: TopoDS_Face, First: number, Last: number, theIsStored: boolean): { returnValue: Geom2d_Curve; First: number; Last: number; [Symbol.dispose](): void }
Returns the curve associated to the edge in the parametric space of the face. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
Parameters (5)EFFirstLasttheIsStored
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- CurveOnSurface(E: TopoDS_Edge, L: TopLoc_Location, First: number, Last: number, Index: number): { C: Geom2d_Curve; S: Geom_Surface; First: number; Last: number; [Symbol.dispose](): void }
Returns in
, , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range. Returns in <First> and <Last> the parameter range.Parameters (5)EL—Mutated in place; read the updated value from this argument after the call.FirstLastIndex
ReturnsA result object with fields:
C: owned by the returned envelope.S: owned by the returned envelope.First: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- CurveOnSurface(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, First: number, Last: number, theIsStored: boolean): { returnValue: Geom2d_Curve; First: number; Last: number; [Symbol.dispose](): void }
Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
Parameters (6)ESLFirstLasttheIsStored
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- CurveOnPlane(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, First: number, Last: number): { returnValue: Geom2d_Curve; First: number; Last: number; [Symbol.dispose](): void }
For the planar surface builds the 2d curve for the edge by projection of the edge on plane. Returns a NULL handle if the surface is not planar or the projection failed.
Parameters (5)ESLFirstLast
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
Parameters (2)EF
- PolygonOnSurface(E: TopoDS_Edge, L: TopLoc_Location): { C: Poly_Polygon2D; S: Geom_Surface; [Symbol.dispose](): void }
Returns in
, , <L> a 2d curve, a surface and a location for the edge <E>. and are null if the edge has no polygon on surface.Parameters (2)EL—Mutated in place; read the updated value from this argument after the call.
ReturnsA result object with fields:
C: owned by the returned envelope.S: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- PolygonOnSurface(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location): Poly_Polygon2D
Returns the polygon associated to the edge in the parametric space of the surface. Returns a NULL handle if this polygon does not exist.
Parameters (3)ESL
- PolygonOnSurface(E: TopoDS_Edge, L: TopLoc_Location, Index: number): { C: Poly_Polygon2D; S: Geom_Surface; [Symbol.dispose](): void }
Returns in
, , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range.Parameters (3)EL—Mutated in place; read the updated value from this argument after the call.Index
ReturnsA result object with fields:
C: owned by the returned envelope.S: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- PolygonOnTriangulation(E: TopoDS_Edge, L: TopLoc_Location): { P: Poly_PolygonOnTriangulation; T: Poly_Triangulation; [Symbol.dispose](): void }
Returns in.
, <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E>.
and <T> are null if the edge has no polygon on triangulation.Parameters (2)EL—Mutated in place; read the updated value from this argument after the call.
ReturnsA result object with fields:
P: owned by the returned envelope.T: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- PolygonOnTriangulation(E: TopoDS_Edge, T: Poly_Triangulation, L: TopLoc_Location): Poly_PolygonOnTriangulation
Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
Parameters (3)ETL
- PolygonOnTriangulation(E: TopoDS_Edge, L: TopLoc_Location, Index: number): { P: Poly_PolygonOnTriangulation; T: Poly_Triangulation; [Symbol.dispose](): void }
Returns in.
, <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E> for the range index.and are null if the edge has no polygon on triangulation.Parameters (3)EL—Mutated in place; read the updated value from this argument after the call.Index
ReturnsA result object with fields:
P: owned by the returned envelope.T: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- SameParameter(E: TopoDS_Edge): boolean
Returns the SameParameter flag for the edge.
Parameters (1)E
- SameRange(E: TopoDS_Edge): boolean
Returns the SameRange flag for the edge.
Parameters (1)E
- Degenerated(E: TopoDS_Edge): boolean
Returns True if the edge is degenerated.
Parameters (1)E
- Range(E: TopoDS_Edge, First: number, Last: number): { First: number; Last: number }
Gets the range of the 3d curve.
Parameters (3)EFirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- Range(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, First: number, Last: number): { First: number; Last: number }
Gets the range of the edge on the pcurve on the surface.
Parameters (5)ESLFirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- Range(E: TopoDS_Edge, F: TopoDS_Face, First: number, Last: number): { First: number; Last: number }
Gets the range of the edge on the pcurve on the face.
Parameters (4)EFFirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- UVPoints(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, PFirst: gp_Pnt2d, PLast: gp_Pnt2d): void
Gets the UV locations of the extremities of the edge.
Parameters (5)ESLPFirst—Mutated in place; read the updated value from this argument after the call.PLast—Mutated in place; read the updated value from this argument after the call.
- UVPoints(E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d): void
Gets the UV locations of the extremities of the edge.
Parameters (4)EFPFirst—Mutated in place; read the updated value from this argument after the call.PLast—Mutated in place; read the updated value from this argument after the call.
- SetUVPoints(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, PFirst: gp_Pnt2d, PLast: gp_Pnt2d): void
Sets the UV locations of the extremities of the edge.
Parameters (5)ESLPFirstPLast
- SetUVPoints(E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d): void
Sets the UV locations of the extremities of the edge.
Parameters (4)EFPFirstPLast
- HasContinuity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face): boolean
Returns True if the edge is on the surfaces of the two faces.
Parameters (3)EF1F2
- HasContinuity(E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location): boolean
Returns True if the edge is on the surfaces.
Parameters (5)ES1S2L1L2
- HasContinuity(E: TopoDS_Edge): boolean
Returns True if the edge has regularity on some two surfaces.
Parameters (1)E
- Continuity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face): GeomAbs_Shape
Returns the continuity.
Parameters (3)EF1F2
- Continuity(E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location): GeomAbs_Shape
Returns the continuity.
Parameters (5)ES1S2L1L2
- MaxContinuity(theEdge: TopoDS_Edge): GeomAbs_Shape
Returns the max continuity of edge between some surfaces or GeomAbs_C0 if there are no such surfaces.
Parameters (1)theEdge
- Pnt(V: TopoDS_Vertex): gp_Pnt
Returns the 3d point.
Parameters (1)V
- Parameter(V: TopoDS_Vertex, E: TopoDS_Edge): number
Returns the parameter of <V> on <E>. Throws Standard_NoSuchObject if no parameter on edge.
Parameters (2)VE
- Parameter(theV: TopoDS_Vertex, theE: TopoDS_Edge, theParam: number): { returnValue: boolean; theParam: number }
Finds the parameter of <theV> on <theE>.
Parameters (3)theV—input vertextheE—input edgetheParam—calculated parameter on the curve
ReturnsA result object with fields:
returnValue: TRUE if donetheParam: calculated parameter on the curve
- Parameter(V: TopoDS_Vertex, E: TopoDS_Edge, F: TopoDS_Face): number
Returns the parameters of the vertex on the pcurve of the edge on the face.
Parameters (3)VEF
- Parameter(V: TopoDS_Vertex, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location): number
Returns the parameters of the vertex on the pcurve of the edge on the surface.
Parameters (4)VESL
- Parameters(V: TopoDS_Vertex, F: TopoDS_Face): gp_Pnt2d
Returns the parameters of the vertex on the face.
Parameters (2)VF
- MaxTolerance(theShape: TopoDS_Shape, theSubShape: TopAbs_ShapeEnum): number
Returns the maximum tolerance of input shape subshapes.
Parameters (2)theShapetheSubShape
BRep_TVertex
The TVertex from BRep inherits from the TVertex from TopoDS. It contains the geometric data.
The TVertex contains a 3d point, location and a tolerance.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(9)
- Tolerance(): number
- Tolerance(T: number): voidParameters (1)
T
- UpdateTolerance(T: number): void
Sets the tolerance to the max of <T> and the current tolerance.
Parameters (1)T
- Parameters (1)
P
Returns a copy of the TShape with no sub-shapes.