BRepFill
OCCT package BRepFill: BRepFill, BRepFill_ACRLaw, BRepFill_AdvancedEvolved, BRepFill_ApproxSeewing, and 29 more bound classes.
BRepFill
Constructors(1)
Static methods(5)
- Face(Edge1: TopoDS_Edge, Edge2: TopoDS_Edge): TopoDS_Face
Computes a ruled surface between two edges.
Parameters (2)Edge1Edge2
- Shell(Wire1: TopoDS_Wire, Wire2: TopoDS_Wire): TopoDS_Shell
Computes a ruled surface between two wires. The wires must have the same number of edges.
Parameters (2)Wire1Wire2
- Axe(Spine: TopoDS_Shape, Profile: TopoDS_Wire, AxeProf: gp_Ax3, ProfOnSpine: boolean, Tol: number): { ProfOnSpine: boolean }
Computes <AxeProf> as Follow. <Location> is the Position of the nearest vertex V of <Profile> to <Spine>.<XDirection> is confused with the tangent to <Spine> at the projected point of V on the Spine. <Direction> is normal to <Spine>. <Spine> is a plane wire or a plane face.
Parameters (5)SpineProfileAxeProf—Mutated in place; read the updated value from this argument after the call.ProfOnSpineTol
ReturnsA result object with fields:
ProfOnSpine: updated value from the call.
- ComputeACR(wire: TopoDS_Wire, ACR: NCollection_Array1_double): void
Compute ACR on a wire.
Parameters (2)wireACR—Mutated in place; read the updated value from this argument after the call.
- InsertACR(wire: TopoDS_Wire, ACRcuts: NCollection_Array1_double, prec: number): TopoDS_Wire
Insert ACR on a wire.
Parameters (3)wireACRcutsprec
BRepFill_ACRLaw
Build Location Law, with a Wire. In the case of guided contour and trihedron by reduced curvilinear abscissa.
Constructors(1)
- constructor(Path: TopoDS_Wire, Law: GeomFill_LocationGuide): BRepFill_ACRLawParameters (2)
PathLaw
Static methods(2)
- get_type_name(): string
Instance methods(1)
BRepFill_AdvancedEvolved
Constructs an evolved volume from a spine (wire or face) and a profile (wire).
Constructors(1)
Constructor.
Instance methods(5)
- Perform(theSpine: TopoDS_Wire, theProfile: TopoDS_Wire, theTolerance: number, theSolidReq?: boolean): voidParameters (4)
theSpinetheProfiletheTolerancetheSolidReq
- IsDone(theErrorCode?: number): booleanParameters (1)
theErrorCode
returns the resulting shape.
- SetTemporaryDirectory(thePath: string): void
Sets directory where the debug shapes will be saved.
Parameters (1)thePath
- SetParallelMode(theVal: boolean): void
Sets/Unsets computation in parallel mode.
Parameters (1)theVal
BRepFill_ApproxSeewing
Evaluate the 3dCurve and the PCurves described in a MultiLine from BRepFill. The parametrization of those curves is not imposed by the Bissectrice. The parametrization is given approximately by the abscissa of the curve3d.
Constructors(2)
- Parameters (1)
ML
Instance methods(5)
- Perform(ML: BRepFill_MultiLine): voidParameters (1)
ML
- IsDone(): boolean
- Curve(): Geom_Curve
returns the approximation of the 3d Curve
returns the approximation of the PCurve on the first face of the MultiLine
returns the approximation of the PCurve on the first face of the MultiLine
BRepFill_CompatibleWires
Constructs a sequence of Wires (with good orientation and origin) agreed each other so that the surface passing through these sections is not twisted.
Constructors(2)
- Parameters (1)
Sections
Instance methods(10)
- Init(Sections: NCollection_Sequence_TopoDS_Shape): voidParameters (1)
Sections
- SetPercent(percent?: number): voidParameters (1)
percent
- Perform(WithRotation?: boolean): void
Performs CompatibleWires According to the orientation and the origin of each other.
Parameters (1)WithRotation
- IsDone(): boolean
returns the generated sequence.
- GeneratedShapes(SubSection: TopoDS_Edge): NCollection_List_TopoDS_Shape
Returns the shapes created from a subshape <SubSection> of a section.
Parameters (1)SubSection
- IsDegeneratedFirstSection(): boolean
- IsDegeneratedLastSection(): boolean
BRepFill_ComputeCLine
Constructors(2)
- constructor(degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, cutting?: boolean, FirstC?: AppParCurves_Constraint, LastC?: AppParCurves_Constraint): BRepFill_ComputeCLine
Initializes the fields of the algorithm.
Parameters (7)degreemindegreemaxTolerance3dTolerance2dcuttingFirstCLastC
- constructor(Line: BRepFill_MultiLine, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, cutting?: boolean, FirstC?: AppParCurves_Constraint, LastC?: AppParCurves_Constraint): BRepFill_ComputeCLine
The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True.
Parameters (8)LinedegreemindegreemaxTolerance3dTolerance2dcuttingFirstCLastC
Instance methods(13)
- Perform(Line: BRepFill_MultiLine): void
runs the algorithm after having initialized the fields.
Parameters (1)Line
- SetDegrees(degreemin: number, degreemax: number): void
changes the degrees of the approximation.
Parameters (2)degreemindegreemax
- SetTolerances(Tolerance3d: number, Tolerance2d: number): void
Changes the tolerances of the approximation.
Parameters (2)Tolerance3dTolerance2d
- SetConstraints(FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint): void
Changes the constraints of the approximation.
Parameters (2)FirstCLastC
- SetMaxSegments(theMaxSegments: number): void
Changes the max number of segments, which is allowed for cutting.
Parameters (1)theMaxSegments
- SetInvOrder(theInvOrder: boolean): void
Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
Parameters (1)theInvOrder
- SetHangChecking(theHangChecking: boolean): void
Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used.
Parameters (1)theHangChecking
- IsAllApproximated(): boolean
returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
- IsToleranceReached(): boolean
returns False if the status NoPointsAdded has been sent.
- Error(Index: number, tol3d: number, tol2d: number): { tol3d: number; tol2d: number }
returns the tolerances 2d and 3d of the <Index> MultiCurve.
Parameters (3)Indextol3dtol2d
ReturnsA result object with fields:
tol3d: updated value from the call.tol2d: updated value from the call.
- NbMultiCurves(): number
Returns the number of MultiCurve doing the approximation of the MultiLine.
- Value(Index?: number): AppParCurves_MultiCurve
returns the approximation MultiCurve of range <Index>.
Parameters (1)Index
- Parameters(Index: number, firstp: number, lastp: number): { firstp: number; lastp: number }Parameters (3)
Indexfirstplastp
BRepFill_CurveConstraint
same as CurveConstraint from GeomPlate with BRepAdaptor_Surface instead of GeomAdaptor_Surface
Constructors(2)
- constructor(Boundary: Adaptor3d_Curve, Tang: number, NPt?: number, TolDist?: number): BRepFill_CurveConstraintParameters (4)
BoundaryTangNPtTolDist
- constructor(Boundary: Adaptor3d_CurveOnSurface, Order: number, NPt?: number, TolDist?: number, TolAng?: number, TolCurv?: number): BRepFill_CurveConstraint
Create a constraint Order is the order of the constraint. The possible values for order are -1,0,1,2. Order i means constraints Gi Npt is the number of points associated with the constraint. TolDist is the maximum error to satisfy for G0 constraints TolAng is the maximum error to satisfy for G1 constraints TolCurv is the maximum error to satisfy for G2 constraints These errors can be replaced by laws of criterion.
Parameters (6)BoundaryOrderNPtTolDistTolAngTolCurv
Static methods(2)
- get_type_name(): string
Instance methods(1)
BRepFill_Draft
Constructors(1)
- constructor(Shape: TopoDS_Shape, Dir: gp_Dir, Angle: number): BRepFill_DraftParameters (3)
ShapeDirAngle
Instance methods(9)
- SetOptions(Style?: BRepFill_TransitionStyle, AngleMin?: number, AngleMax?: number): voidParameters (3)
StyleAngleMinAngleMax
- SetDraft(IsInternal?: boolean): voidParameters (1)
IsInternal
- Perform(LengthMax: number): voidParameters (1)
LengthMax
- Perform(Surface: Geom_Surface, KeepInsideSurface: boolean): voidParameters (2)
SurfaceKeepInsideSurface
- Perform(StopShape: TopoDS_Shape, KeepOutSide: boolean): voidParameters (2)
StopShapeKeepOutSide
- IsDone(): boolean
Returns the draft surface To have the complete shape you have to use the
Shape()methode.Returns the list of shapes generated from the shape .
Parameters (1)S
BRepFill_DraftLaw
Build Location Law, with a Wire.
Constructors(1)
- constructor(Path: TopoDS_Wire, Law: GeomFill_LocationDraft): BRepFill_DraftLawParameters (2)
PathLaw
Static methods(2)
- get_type_name(): string
Instance methods(2)
- CleanLaw(TolAngular: number): void
To clean the little discontinuities.
Parameters (1)TolAngular
BRepFill_Edge3DLaw
Build Location Law, with a Wire.
Constructors(1)
- constructor(Path: TopoDS_Wire, Law: GeomFill_LocationLaw): BRepFill_Edge3DLawParameters (2)
PathLaw
Static methods(2)
- get_type_name(): string
Instance methods(1)
BRepFill_EdgeFaceAndOrder
Constructors(2)
- constructor(anEdge: TopoDS_Edge, aFace: TopoDS_Face, anOrder: GeomAbs_Shape): BRepFill_EdgeFaceAndOrderParameters (3)
anEdgeaFaceanOrder
BRepFill_EdgeOnSurfLaw
Build Location Law, with a Wire and a Surface.
Constructors(1)
- constructor(Path: TopoDS_Wire, Surf: TopoDS_Shape): BRepFill_EdgeOnSurfLawParameters (2)
PathSurf
Static methods(2)
- get_type_name(): string
Instance methods(2)
- HasResult(): boolean
returns <False> if one Edge of <Path> do not have representation on <Surf>. In this case it is impossible to use this object.
BRepFill_Evolved
Constructs an evolved volume from a spine (wire or face) and a profile ( wire).
Constructors(3)
- constructor(Spine: TopoDS_Wire, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join?: GeomAbs_JoinType, Solid?: boolean): BRepFill_Evolved
Creates an evolved shape by sweeping the <Profile> along the <Spine>. <AxeProf> is used to set the position of <Profile> along <Spine> as follows: <AxeProf> slides on the profile with direction colinear to the normal to <Spine>, and its <XDirection> mixed with the tangent to <Spine>.
Parameters (5)SpineProfileAxeProfJoinSolid
- constructor(Spine: TopoDS_Face, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join?: GeomAbs_JoinType, Solid?: boolean): BRepFill_Evolved
Creates an evolved shape by sweeping the <Profile> along the <Spine>.
Parameters (5)SpineProfileAxeProfJoinSolid
Instance methods(8)
- Perform(Spine: TopoDS_Wire, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: GeomAbs_JoinType, Solid: boolean): void
Performs an evolved shape by sweeping the <Profile> along the <Spine>.
Parameters (5)SpineProfileAxeProfJoinSolid
- Perform(Spine: TopoDS_Face, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: GeomAbs_JoinType, Solid: boolean): void
Performs an evolved shape by sweeping the <Profile> along the <Spine>.
Parameters (5)SpineProfileAxeProfJoinSolid
- IsDone(): boolean
returns the generated shape.
- GeneratedShapes(SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape): NCollection_List_TopoDS_Shape
Returns the shapes created from a subshape <SpineShape> of the spine and a subshape <ProfShape> on the profile.
Parameters (2)SpineShapeProfShape
- Top(): TopoDS_Shape
Return the face Top if <Solid> is True in the constructor.
Return the face Bottom if <Solid> is True in the constructor.
BRepFill_FaceAndOrder
A structure containing Face and Order of constraint.
Constructors(2)
- constructor(aFace: TopoDS_Face, anOrder: GeomAbs_Shape): BRepFill_FaceAndOrderParameters (2)
aFaceanOrder
BRepFill_Filling
N-Side Filling This algorithm avoids to build a face from:
- a set of edges defining the bounds of the face and some constraints the surface support has to satisfy
- a set of edges and points defining some constraints the support surface has to satisfy
- an initial surface to deform for satisfying the constraints
- a set of parameters to control the constraints.
The support surface of the face is computed by deformation of the initial surface in order to satisfy the given constraints. The set of bounding edges defines the wire of the face.
If no initial surface is given, the algorithm computes it automatically. If the set of edges is not connected (Free constraint) missing edges are automatically computed.
Limitations: - If some constraints are not compatible The algorithm does not take them into account. So the constraints will not be satisfied in an area containing the incompatibilities.
- The constraints defining the bound of the face have to be entered in order to have a continuous wire.
Other Applications: - Deformation of a face to satisfy internal constraints
- Deformation of a face to improve Gi continuity with connected faces
Constructors(1)
- constructor(Degree?: number, NbPtsOnCur?: number, NbIter?: number, Anisotropie?: boolean, Tol2d?: number, Tol3d?: number, TolAng?: number, TolCurv?: number, MaxDeg?: number, MaxSegments?: number): BRepFill_Filling
Constructor.
Parameters (10)DegreeNbPtsOnCurNbIterAnisotropieTol2dTol3dTolAngTolCurvMaxDegMaxSegments
Instance methods(19)
- SetConstrParam(Tol2d?: number, Tol3d?: number, TolAng?: number, TolCurv?: number): void
Sets the values of Tolerances used to control the constraint. Tol2d: Tol3d: it is the maximum distance allowed between the support surface and the constraints TolAng: it is the maximum angle allowed between the normal of the surface and the constraints TolCurv: it is the maximum difference of curvature allowed between the surface and the constraint.
Parameters (4)Tol2dTol3dTolAngTolCurv
- SetResolParam(Degree?: number, NbPtsOnCur?: number, NbIter?: number, Anisotropie?: boolean): void
Sets the parameters used for resolution. The default values of these parameters have been chosen for a good ratio quality/performance. Degree: it is the order of energy criterion to minimize for computing the deformation of the surface. The default value is 3 The recommended value is i+2 where i is the maximum order of the constraints. NbPtsOnCur: it is the average number of points for discretisation of the edges. NbIter: it is the maximum number of iterations of the process. For each iteration the number of discretisation points is increased. Anisotropie:
Parameters (4)DegreeNbPtsOnCurNbIterAnisotropie
- SetApproxParam(MaxDeg?: number, MaxSegments?: number): void
Sets the parameters used for approximation of the surface.
Parameters (2)MaxDegMaxSegments
- LoadInitSurface(aFace: TopoDS_Face): void
Loads the initial Surface The initial surface must have orthogonal local coordinates, i.e. partial derivatives dS/du and dS/dv must be orthogonal at each point of surface. If this condition breaks, distortions of resulting surface are possible.
Parameters (1)aFace
Adds a punctual constraint.
Parameters (1)Point
- Add(Support: TopoDS_Face, Order: GeomAbs_Shape): number
Adds a free constraint on a face. The corresponding edge has to be automatically recomputed. It is always a bound.
Parameters (2)SupportOrder
- Add(anEdge: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: boolean): number
Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0 : the surface has to pass by 3D representation of the edge GeomAbs_G1 : the surface has to pass by 3D representation of the edge and to respect tangency with the first face of the edge GeomAbs_G2 : the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the first face of the edge.
Parameters (3)anEdgeOrderIsBound
- Add(anEdge: TopoDS_Edge, Support: TopoDS_Face, Order: GeomAbs_Shape, IsBound: boolean): number
Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0 : the surface has to pass by 3D representation of the edge GeomAbs_G1 : the surface has to pass by 3D representation of the edge and to respect tangency with the given face GeomAbs_G2 : the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the given face.
Parameters (4)anEdgeSupportOrderIsBound
- Add(U: number, V: number, Support: TopoDS_Face, Order: GeomAbs_Shape): number
Adds a punctual constraint.
Parameters (4)UVSupportOrder
- Build(): void
Builds the resulting faces.
- IsDone(): boolean
- Face(): TopoDS_Face
Returns the list of shapes generated from the shape .
Parameters (1)S
- G0Error(): number
- G0Error(Index: number): numberParameters (1)
Index
- G1Error(): number
- G1Error(Index: number): numberParameters (1)
Index
- G2Error(): number
- G2Error(Index: number): numberParameters (1)
Index
BRepFill_Generator
Compute a topological surface (a shell) using generating wires. The face of the shell will be ruled surfaces passing by the wires. The wires must have the same number of edges.
Constructors(1)
Instance methods(9)
- AddWire(Wire: TopoDS_Wire): voidParameters (1)
Wire
- Perform(): void
Compute the shell.
Returns all the shapes created.
- GeneratedShapes(SSection: TopoDS_Shape): NCollection_List_TopoDS_Shape
Returns the shapes created from a subshape <SSection> of a section.
Parameters (1)SSection
- ResultShape(theShape: TopoDS_Shape): TopoDS_Shape
Returns a modified shape in the constructed shell, If shape is not changed (replaced) during operation => returns the same shape.
Parameters (1)theShape
- SetMutableInput(theIsMutableInput: boolean): void
Sets the mutable input state If true then the input profile can be modified inside the operation. Default value is true.
Parameters (1)theIsMutableInput
- IsMutableInput(): boolean
Returns the current mutable input state.
Returns status of the operation.
BRepFill_LocationLaw
Location Law on a Wire.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(19)
Return a error status, if the status is not PipeOk then it exist a parameter tlike the law is not valuable for t.
- TransformInG0Law(): void
Apply a linear transformation on each law, to have continuity of the global law between the edges.
- TransformInCompatibleLaw(AngularTolerance: number): void
Apply a linear transformation on each law, to reduce the dicontinuities of law at one rotation.
Parameters (1)AngularTolerance
- DeleteTransform(): void
- NbHoles(Tol?: number): numberParameters (1)
Tol
- Holes(Interval: NCollection_Array1_int): voidParameters (1)
Interval
- NbLaw(): number
Return the number of elementary
Law. - Law(Index: number): GeomFill_LocationLaw
Return the elementary
Lawof rank <Index> <Index> have to be in [1,NbLaw()].Parameters (1)Index
- Wire(): TopoDS_Wire
return the path
- Edge(Index: number): TopoDS_Edge
Return the Edge of rank <Index> in the path <Index> have to be in [1,
NbLaw()].Parameters (1)Index
- Vertex(Index: number): TopoDS_Vertex
Return the vertex of rank <Index> in the path <Index> have to be in [0,
NbLaw()].Parameters (1)Index
- PerformVertex(Index: number, InputVertex: TopoDS_Vertex, TolMin: number, OutputVertex: TopoDS_Vertex, Location: number): void
Compute <OutputVertex> like a transformation of <InputVertex> the transformation is given by evaluation of the location law in the vertex of rank <Index>. <Location> is used to manage discontinuities:
- -1 : The law before the vertex is used.
- 1 : The law after the vertex is used.
- 0 : Average of the both laws is used.
Parameters (5)IndexInputVertexTolMinOutputVertex—Mutated in place; read the updated value from this argument after the call.Location
- CurvilinearBounds(Index: number, First: number, Last: number): { First: number; Last: number }
Return the Curvilinear Bounds of the <Index>
Law.Parameters (3)IndexFirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- IsClosed(): boolean
- IsG1(Index: number, SpatialTolerance?: number, AngularTolerance?: number): number
Compute the
Law's continuity between 2 edges of the path The result can be : -1 : Case Not connex 0 : It is connex (G0) 1 : It is tangent (G1).Parameters (3)IndexSpatialToleranceAngularTolerance
- D0(Abscissa: number, Section: TopoDS_Shape): void
Apply the
Lawto a shape, for a given Curvilinear abscissa.Parameters (2)AbscissaSection—Mutated in place; read the updated value from this argument after the call.
- Parameter(Abscissa: number, Index: number, Param: number): { Index: number; Param: number }
Find the index
Lawand the parameter, for a given Curvilinear abscissa.Parameters (3)AbscissaIndexParam
ReturnsA result object with fields:
Index: updated value from the call.Param: updated value from the call.
- Abscissa(Index: number, Param: number): number
Return the curvilinear abscissa corresponding to a point of the path, defined by <Index> of Edge and a parameter on the edge.
Parameters (2)IndexParam
BRepFill_MultiLine
Class used to compute the 3d curve and the two 2d curves resulting from the intersection of a surface of linear extrusion( Bissec, Dz) and the 2 faces. These 3 curves will have the same parametrization as the Bissectrice. This class is to be sent to an approximation routine.
Constructors(2)
- constructor(Face1: TopoDS_Face, Face2: TopoDS_Face, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Inv1: boolean, Inv2: boolean, Bissec: Geom2d_Curve): BRepFill_MultiLineParameters (7)
Face1Face2Edge1Edge2Inv1Inv2Bissec
Instance methods(11)
- IsParticularCase(): boolean
Search if the Projection of the Bissectrice on the faces needs an approximation or not. Returns true if the approximation is not needed.
Returns the continuity between the two faces seShape from GeomAbsparated by myBis.
- Curves(): { Curve: Geom_Curve; PCurve1: Geom2d_Curve; PCurve2: Geom2d_Curve; [Symbol.dispose](): void }
raises if IsParticularCase is <False>.
ReturnsA result object with fields:
Curve: owned by the returned envelope.PCurve1: owned by the returned envelope.PCurve2: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- FirstParameter(): number
returns the first parameter of the Bissectrice.
- LastParameter(): number
returns the last parameter of the Bissectrice.
Returns the current point on the 3d curve.
Parameters (1)U
- Value(theU: number, thePnt2d: NCollection_Array1_gp_Pnt2d, thePnt: NCollection_Array1_gp_Pnt): boolean
Returns the point at parameter <theU>.
Parameters (3)theUthePnt2d—Mutated in place; read the updated value from this argument after the call.thePnt—Mutated in place; read the updated value from this argument after the call.
returns the current point on the PCurve of the first face
Parameters (1)U
returns the current point on the PCurve of the first face
Parameters (1)U
- Value3dOnF1OnF2(U: number, P3d: gp_Pnt, PF1: gp_Pnt2d, PF2: gp_Pnt2d): voidParameters (4)
UP3dPF1PF2
- D1(theU: number, theVec2d: NCollection_Array1_gp_Vec2d, theVec: NCollection_Array1_gp_Vec): boolean
Returns the derivative at parameter <theU>.
Parameters (3)theUtheVec2d—Mutated in place; read the updated value from this argument after the call.theVec—Mutated in place; read the updated value from this argument after the call.
BRepFill_NSections
Build Section Law, with N Sections.
Constructors(2)
- constructor(S: NCollection_Sequence_TopoDS_Shape, Build?: boolean): BRepFill_NSections
Construct.
Parameters (2)SBuild
- constructor(S: NCollection_Sequence_TopoDS_Shape, Trsfs: NCollection_Sequence_gp_Trsf, P: NCollection_Sequence_double, VF: number, VL: number, Build?: boolean): BRepFill_NSections
Construct.
Parameters (6)STrsfsPVFVLBuild
Static methods(2)
- get_type_name(): string
Instance methods(8)
- IsVertex(): boolean
Say if the input shape is a vertex.
- IsConstant(): boolean
Say if the
Lawis Constant. Give the law build on a concatenated section.
- Continuity(Index: number, TolAngular: number): GeomAbs_ShapeParameters (2)
IndexTolAngular
- VertexTol(Index: number, Param: number): numberParameters (2)
IndexParam
- Vertex(Index: number, Param: number): TopoDS_VertexParameters (2)
IndexParam
- D0(U: number, S: TopoDS_Shape): voidParameters (2)
US
BRepFill_OffsetAncestors
this class is used to find the generating shapes of an OffsetWire.
Constructors(2)
- Parameters (1)
Paral
Instance methods(4)
- Perform(Paral: BRepFill_OffsetWire): voidParameters (1)
Paral
- IsDone(): boolean
- HasAncestor(S1: TopoDS_Edge): booleanParameters (1)
S1
- Ancestor(S1: TopoDS_Edge): TopoDS_Shape
may return a Null Shape if S1 is not a subShape of <Paral>; if Perform is not done.
Parameters (1)S1
BRepFill_OffsetWire
Constructs a Offset Wire to a spine (wire or face). Offset direction will be to outer region in case of positive offset value and to inner region in case of negative offset value. Inner/Outer region for open wire is defined by the following rule: when we go along the wire (taking into account of edges orientation) then outer region will be on the right side, inner region will be on the left side. In case of closed wire, inner region will always be inside the wire (at that, edges orientation is not taken into account). The Wire or the Face must be planar and oriented correctly.
Constructors(2)
- constructor(Spine: TopoDS_Face, Join?: GeomAbs_JoinType, IsOpenResult?: boolean): BRepFill_OffsetWireParameters (3)
SpineJoinIsOpenResult
Instance methods(8)
- Init(Spine: TopoDS_Face, Join?: GeomAbs_JoinType, IsOpenResult?: boolean): void
Initialize the evaluation of Offsetting.
Parameters (3)SpineJoinIsOpenResult
- Perform(Offset: number, Alt?: number): void
Performs an OffsetWire at an altitude <Alt> from the face (According to the orientation of the face).
Parameters (2)OffsetAlt
- PerformWithBiLo(WSP: TopoDS_Face, Offset: number, Locus: BRepMAT2d_BisectingLocus, Link: BRepMAT2d_LinkTopoBilo, Join: GeomAbs_JoinType, Alt: number): void
Performs an OffsetWire.
Parameters (6)WSPOffsetLocusLink—Mutated in place; read the updated value from this argument after the call.JoinAlt
- IsDone(): boolean
- Spine(): TopoDS_Face
returns the generated shape.
- GeneratedShapes(SpineShape: TopoDS_Shape): NCollection_List_TopoDS_Shape
Returns the shapes created from a subshape <SpineShape> of the spine. Returns the last computed Offset.
Parameters (1)SpineShape
BRepFill_Pipe
Create a shape by sweeping a shape (the profile) along a wire (the spine).
For each edge or vertex from the spine the user may ask for the shape generated from each subshape of the profile.
Constructors(2)
- constructor(Spine: TopoDS_Wire, Profile: TopoDS_Shape, aMode?: GeomFill_Trihedron, ForceApproxC1?: boolean, GeneratePartCase?: boolean): BRepFill_PipeParameters (5)
SpineProfileaModeForceApproxC1GeneratePartCase
Instance methods(12)
- Perform(Spine: TopoDS_Wire, Profile: TopoDS_Shape, GeneratePartCase?: boolean): voidParameters (3)
SpineProfileGeneratePartCase
- ErrorOnSurface(): number
- Generated(S: TopoDS_Shape, L: NCollection_List_TopoDS_Shape): void
Returns the list of shapes generated from the shape .
Parameters (2)SL—Mutated in place; read the updated value from this argument after the call.
- Face(ESpine: TopoDS_Edge, EProfile: TopoDS_Edge): TopoDS_Face
Returns the face created from an edge of the spine and an edge of the profile. if the edges are not in the spine or the profile.
Parameters (2)ESpineEProfile
- Edge(ESpine: TopoDS_Edge, VProfile: TopoDS_Vertex): TopoDS_Edge
Returns the edge created from an edge of the spine and a vertex of the profile. if the edge or the vertex are not in the spine or the profile.
Parameters (2)ESpineVProfile
- Section(VSpine: TopoDS_Vertex): TopoDS_Shape
Returns the shape created from the profile at the position of the vertex VSpine. if the vertex is not in the Spine.
Parameters (1)VSpine
- PipeLine(Point: gp_Pnt): TopoDS_Wire
Create a Wire by sweeping the Point along the <spine> if the <Spine> is undefined.
Parameters (1)Point
BRepFill_PipeShell
Computes a topological shell using some wires (spines and profiles) and displacement option Perform general sweeping construction.
Constructors(1)
- constructor(Spine: TopoDS_Wire): BRepFill_PipeShell
Set an sweep's mode If no mode are set, the mode used in MakePipe is used.
Parameters (1)Spine
Static methods(2)
- get_type_name(): string
Instance methods(31)
- Set(Frenet: boolean): void
Set an Frenet or an CorrectedFrenet trihedron to perform the sweeping.
Parameters (1)Frenet
Set an fixed trihedron to perform the sweeping all sections will be parallel.
Parameters (1)Axe
Set an fixed BiNormal direction to perform the sweeping.
Parameters (1)BiNormal
- Set(SpineSupport: TopoDS_Shape): boolean
Set support to the spine to define the BiNormal at the spine, like the normal the surfaces. Warning: To be effective, Each edge of the <spine> must have an representation on one face of<SpineSupport>.
Parameters (1)SpineSupport
- Set(AuxiliarySpine: TopoDS_Wire, CurvilinearEquivalence: boolean, KeepContact: BRepFill_TypeOfContact): void
Set an auxiliary spine to define the Normal For each Point of the Spine P, an Point Q is evaluated on <AuxiliarySpine> If <CurvilinearEquivalence> Q split <AuxiliarySpine> with the same length ratio than P split <Spline>. Else the plan define by P and the tangent to the <Spine> intersect <AuxiliarySpine> in Q. If <KeepContact> equals BRepFill_NoContact: The Normal is defined by the vector PQ.
If <KeepContact> equals BRepFill_Contact: The Normal is defined to achieve that the sweeped section is in contact to the auxiliarySpine. The width of section is constant all along the path. In other words, the auxiliary spine lies on the swept surface, but not necessarily is a boundary of this surface.
However, the auxiliary spine has to be close enough to the main spine to provide intersection with any section all along the path.
If <KeepContact> equals BRepFill_ContactOnBorder: The auxiliary spine becomes a boundary of the swept surface and the width of section varies along the path.Parameters (3)AuxiliarySpineCurvilinearEquivalenceKeepContact
- SetDiscrete(): void
Set a Discrete trihedron to perform the sweeping.
- SetMaxDegree(NewMaxDegree: number): void
Define the maximum V degree of resulting surface.
Parameters (1)NewMaxDegree
- SetMaxSegments(NewMaxSegments: number): void
Define the maximum number of spans in V-direction on resulting surface.
Parameters (1)NewMaxSegments
- SetForceApproxC1(ForceApproxC1: boolean): void
Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. Give section to sweep. Possibilities are:
- Give one or several profile
- Give one profile and an homotetic law.
- Automatic compute of correspondence between profile, and section on the sweeped shape
- correspondence between profile, and section on the sweeped shape defined by a vertex of the spine
Parameters (1)ForceApproxC1
- SetIsBuildHistory(theIsBuildHistory: boolean): void
Sets the build history flag. If set to True, the pipe shell will store the history of the sections and the spine, which can be used for further modifications or analysis.
Parameters (1)theIsBuildHistory
- IsBuildHistory(): boolean
Returns the build history flag. If True, the pipe shell stores the history of the sections and the spine.
- Add(Profile: TopoDS_Shape, WithContact: boolean, WithCorrection: boolean): void
Set an section. The correspondence with the spine, will be automatically performed.
Parameters (3)ProfileWithContactWithCorrection
- Add(Profile: TopoDS_Shape, Location: TopoDS_Vertex, WithContact: boolean, WithCorrection: boolean): void
Set an section. The correspondence with the spine, is given by Location.
Parameters (4)ProfileLocationWithContactWithCorrection
- SetLaw(Profile: TopoDS_Shape, L: Law_Function, WithContact: boolean, WithCorrection: boolean): void
Set an section and an homotetic law. The homotetie's centers is given by point on the <Spine>.
Parameters (4)ProfileLWithContactWithCorrection
- SetLaw(Profile: TopoDS_Shape, L: Law_Function, Location: TopoDS_Vertex, WithContact: boolean, WithCorrection: boolean): void
Set an section and an homotetic law. The homotetie center is given by point on the <Spine>.
Parameters (5)ProfileLLocationWithContactWithCorrection
- DeleteProfile(Profile: TopoDS_Shape): void
Delete an section.
Parameters (1)Profile
- IsReady(): boolean
Say if <me> is ready to build the shape return False if <me> do not have section definition.
Get a status, when Simulate or Build failed.
- SetTolerance(Tol3d?: number, BoundTol?: number, TolAngular?: number): voidParameters (3)
Tol3dBoundTolTolAngular
- SetTransition(Mode?: BRepFill_TransitionStyle, Angmin?: number, Angmax?: number): void
Set the Transition Mode to manage discontinuities on the sweep.
Parameters (3)ModeAngminAngmax
- Simulate(NumberOfSection: number, Sections: NCollection_List_TopoDS_Shape): void
Perform simulation of the sweep: Some Section are returned.
Parameters (2)NumberOfSectionSections—Mutated in place; read the updated value from this argument after the call.
- Build(): boolean
Builds the resulting shape (redefined from MakeShape).
- MakeSolid(): boolean
Transform the sweeping Shell in Solid. If the section are not closed returns False.
Returns the result Shape.
- ErrorOnSurface(): number
Returns the
TopoDSShape of the bottom of the sweep.Returns the
TopoDSShape of the top of the sweep.- Profiles(theProfiles: NCollection_List_TopoDS_Shape): void
Returns the list of original profiles.
Parameters (1)theProfiles—Mutated in place; read the updated value from this argument after the call.
- Spine(): TopoDS_Wire
Returns the spine.
- Generated(S: TopoDS_Shape, L: NCollection_List_TopoDS_Shape): void
Returns the list of shapes generated from the shape .
Parameters (2)SL—Mutated in place; read the updated value from this argument after the call.
BRepFill_Section
To store section definition.
Constructors(2)
- constructor(Profile: TopoDS_Shape, V: TopoDS_Vertex, WithContact: boolean, WithCorrection: boolean): BRepFill_SectionParameters (4)
ProfileVWithContactWithCorrection
Instance methods(9)
- Set(IsLaw: boolean): voidParameters (1)
IsLaw
- Wire(): TopoDS_Wire
- ModifiedShape(theShape: TopoDS_Shape): TopoDS_ShapeParameters (1)
theShape
- IsLaw(): boolean
- IsPunctual(): boolean
- WithContact(): boolean
- WithCorrection(): boolean
BRepFill_SectionLaw
Build Section Law, with an Vertex, or an Wire.
Static methods(2)
- get_type_name(): string
Instance methods(16)
- NbLaw(): number
- Law(Index: number): GeomFill_SectionLawParameters (1)
Index
- IndexOfEdge(anEdge: TopoDS_Shape): numberParameters (1)
anEdge
- IsConstant(): boolean
- IsUClosed(): boolean
- IsVClosed(): boolean
- IsDone(): boolean
- IsVertex(): boolean
Say if the input shape is a vertex.
- Continuity(Index: number, TolAngular: number): GeomAbs_ShapeParameters (2)
IndexTolAngular
- VertexTol(Index: number, Param: number): numberParameters (2)
IndexParam
- Vertex(Index: number, Param: number): TopoDS_VertexParameters (2)
IndexParam
- D0(U: number, S: TopoDS_Shape): voidParameters (2)
US
- Init(W: TopoDS_Wire): voidParameters (1)
W
BRepFill_SectionPlacement
Place a shape in a local axis coordinate.
Constructors(2)
- constructor(Law: BRepFill_LocationLaw, Section: TopoDS_Shape, WithContact?: boolean, WithCorrection?: boolean): BRepFill_SectionPlacement
Automatic placement.
Parameters (4)LawSectionWithContactWithCorrection
- constructor(Law: BRepFill_LocationLaw, Section: TopoDS_Shape, Vertex: TopoDS_Shape, WithContact?: boolean, WithCorrection?: boolean): BRepFill_SectionPlacement
Placement on vertex.
Parameters (5)LawSectionVertexWithContactWithCorrection
Instance methods(2)
- AbscissaOnPath(): number
BRepFill_ShapeLaw
Build Section Law, with an Vertex, or an Wire.
Constructors(3)
- constructor(V: TopoDS_Vertex, Build?: boolean): BRepFill_ShapeLaw
Construct an constant
Law.Parameters (2)VBuild
- constructor(W: TopoDS_Wire, Build?: boolean): BRepFill_ShapeLaw
Construct an constant
Law.Parameters (2)WBuild
- constructor(W: TopoDS_Wire, L: Law_Function, Build?: boolean): BRepFill_ShapeLaw
Construct an evolutive
Law.Parameters (3)WLBuild
Static methods(2)
- get_type_name(): string
Instance methods(9)
- IsVertex(): boolean
Say if the input shape is a vertex.
- IsConstant(): boolean
Say if the
Lawis Constant. Give the law build on a concatenated section.
- Continuity(Index: number, TolAngular: number): GeomAbs_ShapeParameters (2)
IndexTolAngular
- VertexTol(Index: number, Param: number): numberParameters (2)
IndexParam
- Vertex(Index: number, Param: number): TopoDS_VertexParameters (2)
IndexParam
- D0(U: number, S: TopoDS_Shape): voidParameters (2)
US
- Edge(Index: number): TopoDS_EdgeParameters (1)
Index
BRepFill_Sweep
Topological Sweep Algorithm Computes an Sweep shell using a generating wire, an SectionLaw and an LocationLaw.
Constructors(1)
- constructor(Section: BRepFill_SectionLaw, Location: BRepFill_LocationLaw, WithKPart: boolean): BRepFill_SweepParameters (3)
SectionLocationWithKPart
Instance methods(12)
- SetBounds(FirstShape: TopoDS_Wire, LastShape: TopoDS_Wire): voidParameters (2)
FirstShapeLastShape
- SetTolerance(Tol3d: number, BoundTol?: number, Tol2d?: number, TolAngular?: number): void
Set Approximation Tolerance Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface.
Parameters (4)Tol3dBoundTolTol2dTolAngular
- SetAngularControl(AngleMin?: number, AngleMax?: number): void
Tolerance To controle Corner management.
If the discontinuity is lesser than <AngleMin> in radian The Transition Performed will be always "Modified"Parameters (2)AngleMinAngleMax
- SetForceApproxC1(ForceApproxC1: boolean): void
Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
Parameters (1)ForceApproxC1
- Build(ReversedEdges: NCollection_Map_TopoDS_Shape_TopTools_ShapeMapHasher, Tapes: NCollection_DataMap_TopoDS_Shape_handle_NCollection_HArray2_TopoDS_Shape_TopTools_ShapeMapHasher, Rails: NCollection_DataMap_TopoDS_Shape_handle_NCollection_HArray2_TopoDS_Shape_TopTools_ShapeMapHasher, Transition: BRepFill_TransitionStyle, Continuity: GeomAbs_Shape, Approx: GeomFill_ApproxStyle, Degmax: number, Segmax: number): void
Build the Sweep Surface Transition define Transition strategy Approx define Approximation Strategy.
- GeomFill_Section : The composed Function Location X Section is directly approximated.
- GeomFill_Location : The location law is approximated, and the SweepSurface builds an algebraic composition of approximated location law and section law This option is Ok, if Section.Surface() methode is effective. Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v required on the surface Segmax : The maximum number of span in v required on the surface.
Parameters (8)ReversedEdges—Mutated in place; read the updated value from this argument after the call.Tapes—Mutated in place; read the updated value from this argument after the call.Rails—Mutated in place; read the updated value from this argument after the call.TransitionContinuityApproxDegmaxSegmax
- IsDone(): boolean
Say if the Shape is Build.
Returns the Sweeping Shape.
- ErrorOnSurface(): number
Get the Approximation error.
- Tape(Index: number): TopoDS_Shape
Returns the Tape corresponding to Index-th edge of section.
Parameters (1)Index
BRepFill_ThruSectionErrorStatus
Properties(7)
- BRepFill_ThruSectionErrorStatus_NotSameTopology:'BRepFill_ThruSectionErrorStatus_NotSameTopology'readonly
- BRepFill_ThruSectionErrorStatus_ProfilesInconsistent:'BRepFill_ThruSectionErrorStatus_ProfilesInconsistent'readonly
BRepFill_TransitionStyle
Properties(3)
BRepFill_TrimEdgeTool
Geometric Tool using to construct Offset Wires.
Constructors(2)
- constructor(Bisec: Bisector_Bisec, S1: Geom2d_Geometry, S2: Geom2d_Geometry, Offset: number): BRepFill_TrimEdgeToolParameters (4)
BisecS1S2Offset
Instance methods(3)
- IntersectWith(Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, InitShape1: TopoDS_Shape, InitShape2: TopoDS_Shape, End1: TopoDS_Vertex, End2: TopoDS_Vertex, theJoinType: GeomAbs_JoinType, IsOpenResult: boolean, Params: NCollection_Sequence_gp_Pnt): voidParameters (9)
Edge1Edge2InitShape1InitShape2End1End2theJoinTypeIsOpenResultParams
- AddOrConfuse(Start: boolean, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Params: NCollection_Sequence_gp_Pnt): voidParameters (4)
StartEdge1Edge2Params
- Parameters (1)
P
BRepFill_TrimShellCorner
Trims sets of faces in the corner to make proper parts of pipe.
Constructors(1)
- constructor(theFaces: NCollection_HArray2_TopoDS_Shape, theTransition: BRepFill_TransitionStyle, theAxeOfBisPlane: gp_Ax2, theIntPointCrossDir: gp_Vec): BRepFill_TrimShellCorner
Constructor: takes faces to intersect, type of transition (it can be RightCorner or RoundCorner) and axis of bisector plane theIntersectPointCrossDirection : prev path direction at the origin point of theAxeOfBisPlane cross next path direction at the origin point of theAxeOfBisPlane. used when EE has more than one vertices.
Parameters (4)theFacestheTransitiontheAxeOfBisPlanetheIntPointCrossDir
Instance methods(7)
- AddBounds(Bounds: NCollection_HArray2_TopoDS_Shape): voidParameters (1)
Bounds
- AddUEdges(theUEdges: NCollection_HArray2_TopoDS_Shape): voidParameters (1)
theUEdges
- AddVEdges(theVEdges: NCollection_HArray2_TopoDS_Shape, theIndex: number): voidParameters (2)
theVEdgestheIndex
- Perform(): void
- IsDone(): boolean
- HasSection(): boolean
- Modified(S: TopoDS_Shape, theModified: NCollection_List_TopoDS_Shape): voidParameters (2)
StheModified