LocOpe
OCCT package LocOpe: LocOpe, LocOpe_BuildShape, LocOpe_BuildWires, LocOpe_DPrism, and 15 more bound classes.
LocOpe
Provides tools to implement local topological operations on a shape.
Constructors(1)
Static methods(4)
- Closed(W: TopoDS_Wire, OnF: TopoDS_Face): boolean
Returns true when the wire <W> is closed on the face <OnF>.
Parameters (2)WOnF
- Closed(E: TopoDS_Edge, OnF: TopoDS_Face): boolean
Returns true when the edge <E> is closed on the face <OnF>.
Parameters (2)EOnF
- TgtFaces(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face): boolean
Returns true when the faces are tangent.
Parameters (3)EF1F2
- SampleEdges(S: TopoDS_Shape, Pt: NCollection_Sequence_gp_Pnt): voidParameters (2)
SPt
LocOpe_BuildShape
Constructors(2)
Builds shape(s) from the list <L>. Uses only the faces of <L>.
Parameters (1)L
Instance methods(2)
- Perform(L: NCollection_List_TopoDS_Shape): void
Builds shape(s) from the list <L>. Uses only the faces of <L>.
Parameters (1)L
LocOpe_BuildWires
Constructors(2)
- Parameters (2)
LedgesPW
Instance methods(3)
- Perform(Ledges: NCollection_List_TopoDS_Shape, PW: LocOpe_WiresOnShape): voidParameters (2)
LedgesPW
- IsDone(): boolean
LocOpe_DPrism
Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.
Constructors(2)
- constructor(Spine: TopoDS_Face, Height: number, Angle: number): LocOpe_DPrismParameters (3)
SpineHeightAngle
- constructor(Spine: TopoDS_Face, Height1: number, Height2: number, Angle: number): LocOpe_DPrismParameters (4)
SpineHeight1Height2Angle
Instance methods(9)
- IsDone(): boolean
- Parameters (1)
S
- Curves(SCurves: NCollection_Sequence_handle_Geom_Curve): voidParameters (1)
SCurves
LocOpe_FindEdges
Constructors(2)
- constructor(FFrom: TopoDS_Shape, FTo: TopoDS_Shape): LocOpe_FindEdgesParameters (2)
FFromFTo
Instance methods(6)
- Set(FFrom: TopoDS_Shape, FTo: TopoDS_Shape): voidParameters (2)
FFromFTo
- InitIterator(): void
- More(): boolean
- Next(): void
LocOpe_FindEdgesInFace
Constructors(2)
- Parameters (2)
SF
Instance methods(5)
- Set(S: TopoDS_Shape, F: TopoDS_Face): voidParameters (2)
SF
- Init(): void
- More(): boolean
- Edge(): TopoDS_Edge
- Next(): void
LocOpe_GeneratedShape
Static methods(2)
- get_type_name(): string
Instance methods(5)
Returns the edge created by the vertex <V>. If none, must return a null shape.
Parameters (1)V
Returns the face created by the edge <E>. If none, must return a null shape.
Parameters (1)E
Returns the list of correctly oriented generated faces.
LocOpe_Generator
Constructors(2)
Empty constructor.
Creates the algorithm on the shape .
Parameters (1)S
Instance methods(6)
- Init(S: TopoDS_Shape): void
Initializes the algorithm on the shape .
Parameters (1)S
- Perform(G: LocOpe_GeneratedShape): voidParameters (1)
G
- IsDone(): boolean
Returns the new shape.
Returns the initial shape.
Returns the descendant face of <F>. <F> may belong to the original shape or to the "generated" shape. The returned face may be a null shape (when <F> disappears).
Parameters (1)F
LocOpe_GluedShape
Constructors(2)
- Parameters (1)
S
Static methods(2)
- get_type_name(): string
Instance methods(7)
- Init(S: TopoDS_Shape): voidParameters (1)
S
- GlueOnFace(F: TopoDS_Face): voidParameters (1)
F
Returns the edge created by the vertex <V>. If none, must return a null shape.
Parameters (1)V
Returns the face created by the edge <E>. If none, must return a null shape.
Parameters (1)E
Returns the list of correctly oriented generated faces.
LocOpe_Gluer
Constructors(2)
- constructor(Sbase: TopoDS_Shape, Snew: TopoDS_Shape): LocOpe_GluerParameters (2)
SbaseSnew
Instance methods(12)
- Init(Sbase: TopoDS_Shape, Snew: TopoDS_Shape): voidParameters (2)
SbaseSnew
- Bind(Fnew: TopoDS_Face, Fbase: TopoDS_Face): voidParameters (2)
FnewFbase
- Bind(Enew: TopoDS_Edge, Ebase: TopoDS_Edge): voidParameters (2)
EnewEbase
- Perform(): void
- IsDone(): boolean
- Parameters (1)
F
LocOpe_LinearForm
Defines a linear form (using Prism from BRepSweep) with modifications provided for the LinearForm feature.
Constructors(3)
- constructor(Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt): LocOpe_LinearFormParameters (4)
BaseVPnt1Pnt2
- constructor(Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt): LocOpe_LinearFormParameters (5)
BaseVVectraPnt1Pnt2
Instance methods(6)
- Perform(Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt): voidParameters (4)
BaseVPnt1Pnt2
- Parameters (5)
BaseVVectraPnt1Pnt2
- Parameters (1)
S
LocOpe_Operation
Properties(3)
LocOpe_Pipe
Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.
Constructors(1)
- constructor(Spine: TopoDS_Wire, Profile: TopoDS_Shape): LocOpe_PipeParameters (2)
SpineProfile
Instance methods(8)
- Parameters (1)
S
- Parameters (1)
Spt
LocOpe_PntFace
Constructors(2)
Empty constructor. Useful only for the list.
- constructor(P: gp_Pnt, F: TopoDS_Face, Or: TopAbs_Orientation, Param: number, UPar: number, VPar: number): LocOpe_PntFaceParameters (6)
PFOrParamUParVPar
Instance methods(7)
- Face(): TopoDS_Face
- Parameter(): number
- UParameter(): number
- VParameter(): number
LocOpe_Prism
Defines a prism (using Prism from BRepSweep) with modifications provided for the Prism feature.
Constructors(3)
- constructor(Base: TopoDS_Shape, V: gp_Vec): LocOpe_PrismParameters (2)
BaseV
- constructor(Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec): LocOpe_PrismParameters (3)
BaseVVectra
Instance methods(8)
- Perform(Base: TopoDS_Shape, V: gp_Vec): voidParameters (2)
BaseV
- Perform(Base: TopoDS_Shape, V: gp_Vec, Vtra: gp_Vec): voidParameters (3)
BaseVVtra
- Parameters (1)
S
- Curves(SCurves: NCollection_Sequence_handle_Geom_Curve): voidParameters (1)
SCurves
LocOpe_SplitDrafts
This class provides a tool to realize the following operations on a shape:
- split a face of the shape with a wire,
- put draft angle on both side of the wire. For each side, the draft angle may be different.
Constructors(2)
Empty constructor.
Creates the algorithm on the shape .
Parameters (1)S
Instance methods(7)
- Init(S: TopoDS_Shape): void
Initializes the algorithm with the shape .
Parameters (1)S
- Perform(F: TopoDS_Face, W: TopoDS_Wire, Extractg: gp_Dir, NPlg: gp_Pln, Angleg: number, Extractd: gp_Dir, NPld: gp_Pln, Angled: number, ModifyLeft: boolean, ModifyRight: boolean): void
Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face.
Puts a draft angle on both parts of the wire. <Extractg>, <Nplg>, <Angleg> define the arguments for the left part of the wire. <Extractd>, <Npld>, <Angled> define the arguments for the right part of the wire.
The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle. If <ModifyLeft> is set to <false>, no draft angle is applied to the left part of the wire. If <ModifyRight> is set to <false>,no draft angle is applied to the right part of the wire.Parameters (10)FWExtractgNPlgAnglegExtractdNPldAngledModifyLeftModifyRight
- Perform(F: TopoDS_Face, W: TopoDS_Wire, Extract: gp_Dir, NPl: gp_Pln, Angle: number): void
Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on the left part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle.
Parameters (5)FWExtractNPlAngle
- IsDone(): boolean
Returns <true> if the modification has been successfully performed.
Returns the modified shape.
Manages the descendant shapes.
Parameters (1)S
LocOpe_Spliter
Constructors(2)
Empty constructor.
Creates the algorithm on the shape .
Parameters (1)S
Instance methods(8)
- Init(S: TopoDS_Shape): void
Initializes the algorithm on the shape .
Parameters (1)S
- Perform(PW: LocOpe_WiresOnShape): voidParameters (1)
PW
- IsDone(): boolean
Returns the new shape.
Returns the initial shape.
Returns the faces which are the left of the projected wires and which are.
Returns the faces of the "left" part on the shape. (It is build from DirectLeft, with the faces connected to this set, and so on...).
Returns the list of descendant shapes of .
Parameters (1)S
LocOpe_SplitShape
Provides a tool to cut:
- edges with a vertices,
- faces with wires, and rebuilds the shape containing the edges and the faces.
Constructors(2)
Empty constructor.
Creates the process with the shape .
Parameters (1)S
Instance methods(8)
- Init(S: TopoDS_Shape): void
Initializes the process on the shape .
Parameters (1)S
- CanSplit(E: TopoDS_Edge): boolean
Tests if it is possible to split the edge <E>.
Parameters (1)E
- Add(W: TopoDS_Wire, F: TopoDS_Face): boolean
Adds the wire <W> on the face <F>.
Parameters (2)WF
- Add(Lwires: NCollection_List_TopoDS_Shape, F: TopoDS_Face): boolean
Adds the list of wires <Lwires> on the face <F>.
Parameters (2)LwiresF
- Add(V: TopoDS_Vertex, P: number, E: TopoDS_Edge): void
Adds the vertex <V> on the edge <E>, at parameter.
.Parameters (3)VPE
Returns the "original" shape.
Returns the list of descendant shapes of .
Parameters (1)S
Returns the "left" part defined by the wire <W> on the face <F>. The returned list of shape is in fact a list of faces. The face <F> is considered with its topological orientation in the original shape. <W> is considered with its orientation.
Parameters (2)WF
LocOpe_WiresOnShape
Constructors(1)
- Parameters (1)
S
Static methods(2)
- get_type_name(): string
Instance methods(20)
- Init(S: TopoDS_Shape): voidParameters (1)
S
- Add(theEdges: NCollection_Sequence_TopoDS_Shape): boolean
Add splitting edges or wires for whole initial shape without additional specification edge->face, edge->edge This method puts edge on the corresponding faces from initial shape.
Parameters (1)theEdges
- SetCheckInterior(ToCheckInterior: boolean): void
Set the flag of check internal intersections default value is True (to check).
Parameters (1)ToCheckInterior
- Bind(W: TopoDS_Wire, F: TopoDS_Face): voidParameters (2)
WF
- Bind(Comp: TopoDS_Compound, F: TopoDS_Face): voidParameters (2)
CompF
- Bind(E: TopoDS_Edge, F: TopoDS_Face): voidParameters (2)
EF
- Bind(EfromW: TopoDS_Edge, EonFace: TopoDS_Edge): voidParameters (2)
EfromWEonFace
- BindAll(): void
- IsDone(): boolean
- InitEdgeIterator(): void
- MoreEdge(): boolean
- Edge(): TopoDS_Edge
Returns the face of the shape on which the current edge is projected.
- OnEdge(E: TopoDS_Edge): boolean
If the current edge is projected on an edge, returns <true> and sets the value of <E>. Otherwise, returns <false>.
Parameters (1)E—Mutated in place; read the updated value from this argument after the call.
- OnEdge(V: TopoDS_Vertex, E: TopoDS_Edge, P: number): { returnValue: boolean; P: number }
If the vertex <V> lies on an edge of the original shape, returns <true> and sets the concerned edge in <E>, and the parameter on the edge in.
. Else returns <false>.Parameters (3)VE—Mutated in place; read the updated value from this argument after the call.P
ReturnsA result object with fields:
returnValue: the C++ return valueP: updated value from the call.
- OnEdge(V: TopoDS_Vertex, EdgeFrom: TopoDS_Edge, E: TopoDS_Edge, P: number): { returnValue: boolean; P: number }
If the vertex <V> lies on an edge of the original shape, returns <true> and sets the concerned edge in <E>, and the parameter on the edge in.
. Else returns <false>.Parameters (4)VEdgeFromE—Mutated in place; read the updated value from this argument after the call.P
ReturnsA result object with fields:
returnValue: the C++ return valueP: updated value from the call.
- NextEdge(): void
- OnVertex(Vwire: TopoDS_Vertex, Vshape: TopoDS_Vertex): booleanParameters (2)
VwireVshape
- IsFaceWithSection(aFace: TopoDS_Shape): boolean
tells is the face to be split by section or not
Parameters (1)aFace