ChFi3d
OCCT package ChFi3d: ChFi3d, ChFi3d_Builder, ChFi3d_ChBuilder, ChFi3d_FilBuilder, and 2 more bound classes.
ChFi3d
creation of spatial fillets on a solid.
Constructors(1)
Static methods(2)
- DefineConnectType(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, SinTol: number, CorrectPoint: boolean): ChFiDS_TypeOfConcavity
Defines the type of concavity in the edge of connection of two faces.
Parameters (5)EF1F2SinTolCorrectPoint
- IsTangentFaces(theEdge: TopoDS_Edge, theFace1: TopoDS_Face, theFace2: TopoDS_Face, Order?: GeomAbs_Shape): boolean
Returns true if theEdge between theFace1 and theFace2 is tangent.
Parameters (4)theEdgetheFace1theFace2Order
ChFi3d_Builder
Root class for calculation of surfaces (fillets, chamfers) destined to smooth edges of a gap on a Shape and the reconstruction of the Shape.
Instance methods(31)
- SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): voidParameters (6)
TangTespT2dTApp3dTolApp2dFleche
- SetContinuity(InternalContinuity: GeomAbs_Shape, AngularTolerance: number): voidParameters (2)
InternalContinuityAngularTolerance
- Remove(E: TopoDS_Edge): void
extracts from the list the contour containing edge E.
Parameters (1)E
- Contains(E: TopoDS_Edge): number
gives the number of the contour containing E or 0 if E does not belong to any contour.
Parameters (1)E
- Contains(E: TopoDS_Edge, IndexInSpine: number): { returnValue: number; IndexInSpine: number }
gives the number of the contour containing E or 0 if E does not belong to any contour. Sets in IndexInSpine the index of E in the contour if it's found
Parameters (2)EIndexInSpine
ReturnsA result object with fields:
returnValue: the C++ return valueIndexInSpine: updated value from the call.
- NbElements(): number
gives the number of disjoint contours on which the fillets are calculated
- Value(I: number): ChFiDS_Spine
gives the n'th set of edges (contour) if I >
NbElements()Parameters (1)I
- Length(IC: number): number
returns the length of the contour of index IC.
Parameters (1)IC
- FirstVertex(IC: number): TopoDS_Vertex
returns the First vertex V of the contour of index IC.
Parameters (1)IC
- LastVertex(IC: number): TopoDS_Vertex
returns the Last vertex V of the contour of index IC.
Parameters (1)IC
- Abscissa(IC: number, V: TopoDS_Vertex): number
returns the abscissa of the vertex V on the contour of index IC.
Parameters (2)ICV
- RelativeAbscissa(IC: number, V: TopoDS_Vertex): number
returns the relative abscissa([0.,1.]) of the vertex V on the contour of index IC.
Parameters (2)ICV
- ClosedAndTangent(IC: number): boolean
returns true if the contour of index IC is closed an tangent.
Parameters (1)IC
- Closed(IC: number): boolean
returns true if the contour of index IC is closed
Parameters (1)IC
- Compute(): void
general calculation of geometry on all edges, topologic reconstruction.
- IsDone(): boolean
returns True if the computation is success
if (Isdone()) makes the result. if (!Isdone())
Advanced function for the history.
Parameters (1)EouV
- NbFaultyContours(): number
Returns the number of contours on which the calculation has failed.
- FaultyContour(I: number): number
Returns the number of I'th contour on which the calculation has failed.
Parameters (1)I
- NbComputedSurfaces(IC: number): number
Returns the number of surfaces calculated on the contour IC.
Parameters (1)IC
- ComputedSurface(IC: number, IS: number): Geom_Surface
Returns the IS'th surface calculated on the contour IC.
Parameters (2)ICIS
- NbFaultyVertices(): number
Returns the number of vertices on which the calculation has failed.
- FaultyVertex(IV: number): TopoDS_Vertex
Returns the IV'th vertex on which the calculation has failed.
Parameters (1)IV
- HasResult(): boolean
returns True if a partial result has been calculated
if (
HasResult()) returns partial result if (!HasResult())- StripeStatus(IC: number): ChFiDS_ErrorStatus
for the stripe IC ,indication on the cause of failure WalkingFailure,TwistedSurface,Error, Ok
Parameters (1)IC
- Reset(): void
Reset all results of compute and returns the algorithm in the state of the last acquisition to enable modification of contours or areas.
- Builder(): unknown
Returns the Builder of topologic operations.
- SplitKPart(Data: ChFiDS_SurfData, SetData: NCollection_Sequence_handle_ChFiDS_SurfData, Spine: ChFiDS_Spine, Iedge: number, S1: Adaptor3d_Surface, I1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, I2: Adaptor3d_TopolTool, Intf: boolean, Intl: boolean): { returnValue: boolean; Intf: boolean; Intl: boolean }
Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer).
Parameters (10)DataSetData—Mutated in place; read the updated value from this argument after the call.SpineIedgeS1I1S2I2IntfIntl
ReturnsA result object with fields:
returnValue: the C++ return valueIntf: updated value from the call.Intl: updated value from the call.
- PerformTwoCornerbyInter(Index: number): booleanParameters (1)
Index
ChFi3d_ChBuilder
construction tool for 3D chamfers on edges (on a solid).
Constructors(1)
- constructor(S: TopoDS_Shape, Ta?: number): ChFi3d_ChBuilder
initializes the Builder with the Shape for the computation of chamfers
Parameters (2)STa
Instance methods(24)
- Add(E: TopoDS_Edge): void
initializes a contour with the edge <E> as first (the next are found by propagation ). The two distances (parameters of the chamfer) must be set after. if the edge <E> has more than 2 adjacent faces
Parameters (1)E
- Add(Dis: number, E: TopoDS_Edge): void
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis> if the edge <E> has more than 2 adjacent faces
Parameters (2)DisE
- Add(Dis1: number, Dis2: number, E: TopoDS_Edge, F: TopoDS_Face): void
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Dis2> if the edge <E> has more than 2 adjacent faces
Parameters (4)Dis1Dis2EF
- SetDist(Dis: number, IC: number, F: TopoDS_Face): void
set the distance <Dis> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
Parameters (3)DisICF
- GetDist(IC: number, Dis: number): { Dis: number }
gives the distances <Dis> of the fillet contour of index <IC> in the DS
Parameters (2)ICDis
ReturnsA result object with fields:
Dis: updated value from the call.
- SetDists(Dis1: number, Dis2: number, IC: number, F: TopoDS_Face): void
set the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS with <Dis1> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
Parameters (4)Dis1Dis2ICF
- Dists(IC: number, Dis1: number, Dis2: number): { Dis1: number; Dis2: number }
gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS
Parameters (3)ICDis1Dis2
ReturnsA result object with fields:
Dis1: updated value from the call.Dis2: updated value from the call.
- AddDA(Dis: number, Angle: number, E: TopoDS_Edge, F: TopoDS_Face): void
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Angle> if the edge <E> has more than 2 adjacent faces
Parameters (4)DisAngleEF
- SetDistAngle(Dis: number, Angle: number, IC: number, F: TopoDS_Face): void
set the distance <Dis> and <Angle> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
Parameters (4)DisAngleICF
- GetDistAngle(IC: number, Dis: number, Angle: number): { Dis: number; Angle: number }
gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS
Parameters (3)ICDisAngle
ReturnsA result object with fields:
Dis: updated value from the call.Angle: updated value from the call.
- SetMode(theMode: ChFiDS_ChamfMode): void
set the mode of shamfer
Parameters (1)theMode
- IsChamfer(IC: number): ChFiDS_ChamfMethod
renvoi la methode des chanfreins utilisee
Parameters (1)IC
returns the mode of chamfer used
- ResetContour(IC: number): void
Reset tous rayons du contour IC.
Parameters (1)IC
- Simulate(IC: number): voidParameters (1)
IC
- NbSurf(IC: number): numberParameters (1)
IC
- Sect(IC: number, IS: number): NCollection_HArray1_ChFiDS_CircSectionParameters (2)
ICIS
- SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch1: boolean; First: number; Last: number; [Symbol.dispose](): void }Parameters (23)
GuideSpineChoixS1I1PC1Sref1PCref1Decroch1S2I2Or2FlecheTolGuideFirstLastInsideApproForwardRecPRecSRecRstSoldep
- SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch2: boolean; First: number; Last: number; [Symbol.dispose](): void }Parameters (23)
GuideSpineChoixS1I1Or1S2I2PC2Sref2PCref2Decroch2FlecheTolGuideFirstLastInsideApproForwardRecPRecSRecRstSoldep
- SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Or2: TopAbs_Orientation, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP1: boolean, RecRst1: boolean, RecP2: boolean, RecRst2: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch1: boolean; Decroch2: boolean; First: number; Last: number; [Symbol.dispose](): void }Parameters (29)
GuideSpineChoixS1I1PC1Sref1PCref1Decroch1Or1S2I2PC2Sref2PCref2Decroch2Or2FlecheTolGuideFirstLastInsideApproForwardRecP1RecRst1RecP2RecRst2Soldep
- PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecOnS1: boolean, RecOnS2: boolean, Soldep: math_Vector, Intf: number, Intl: number): { returnValue: boolean; First: number; Last: number; Intf: number; Intl: number }
Methode, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer).
Parameters (21)Data—Mutated in place; read the updated value from this argument after the call.GuideSpineChoixS1I1S2I2MaxStepFlecheTolGuideFirstLastInsideApproForwardRecOnS1RecOnS2SoldepIntfIntl
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.Intf: updated value from the call.Intl: updated value from the call.
- PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Decroch1: boolean; First: number; Last: number }
Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Parameters (25)Data—Mutated in place; read the updated value from this argument after the call.GuideSpineChoixS1I1PC1Sref1PCref1Decroch1S2I2Or2MaxStepFlecheTolGuideFirstLastInsideApproForwardRecPRecSRecRstSoldep
ReturnsA result object with fields:
Decroch1: updated value from the call.First: updated value from the call.Last: updated value from the call.
- PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Decroch2: boolean; First: number; Last: number }
Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Parameters (25)Data—Mutated in place; read the updated value from this argument after the call.GuideSpineChoixS1I1Or1S2I2PC2Sref2PCref2Decroch2MaxStepFlecheTolGuideFirstLastInsideApproForwardRecPRecSRecRstSoldep
ReturnsA result object with fields:
Decroch2: updated value from the call.First: updated value from the call.Last: updated value from the call.
- PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Or2: TopAbs_Orientation, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP1: boolean, RecRst1: boolean, RecP2: boolean, RecRst2: boolean, Soldep: math_Vector): { Decroch1: boolean; Decroch2: boolean; First: number; Last: number }
Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/edge.
Parameters (31)Data—Mutated in place; read the updated value from this argument after the call.GuideSpineChoixS1I1PC1Sref1PCref1Decroch1Or1S2I2PC2Sref2PCref2Decroch2Or2MaxStepFlecheTolGuideFirstLastInsideApproForwardRecP1RecRst1RecP2RecRst2Soldep
ReturnsA result object with fields:
Decroch1: updated value from the call.Decroch2: updated value from the call.First: updated value from the call.Last: updated value from the call.
ChFi3d_FilBuilder
Tool of construction of fillets 3d on edges (on a solid).
Constructors(1)
- constructor(S: TopoDS_Shape, FShape?: ChFi3d_FilletShape, Ta?: number): ChFi3d_FilBuilderParameters (3)
SFShapeTa
Instance methods(21)
- SetFilletShape(FShape: ChFi3d_FilletShape): void
Sets the type of fillet surface.
Parameters (1)FShape
Returns the type of fillet surface.
- Add(E: TopoDS_Edge): void
initialisation of a contour with the first edge (the following are found by propagation). Attention, you need to start with SetRadius.
Parameters (1)E
- Add(Radius: number, E: TopoDS_Edge): void
initialisation of the constant vector the corresponding 1st edge.
Parameters (2)RadiusE
- SetRadius(C: Law_Function, IC: number, IinC: number): void
Set the radius of the contour of index IC.
Parameters (3)CICIinC
- SetRadius(Radius: number, IC: number, E: TopoDS_Edge): void
Set a constant on edge E of the contour of index IC. Since then E is flagged as constant.
Parameters (3)RadiusICE
- SetRadius(Radius: number, IC: number, V: TopoDS_Vertex): void
Set a vector on vertex V of the contour of index IC.
Parameters (3)RadiusICV
Set a vertex on the point of parameter U in the edge IinC of the contour of index IC.
Parameters (3)UandRICIinC
- IsConstant(IC: number): boolean
Returns true the contour is flagged as edge constant.
Parameters (1)IC
- IsConstant(IC: number, E: TopoDS_Edge): boolean
Returns true E is flagged as edge constant.
Parameters (2)ICE
- Radius(IC: number): number
Returns the vector if the contour is flagged as edge constant.
Parameters (1)IC
- Radius(IC: number, E: TopoDS_Edge): number
Returns the vector if E is flagged as edge constant.
Parameters (2)ICE
- ResetContour(IC: number): void
Reset all vectors of contour IC.
Parameters (1)IC
- UnSet(IC: number, E: TopoDS_Edge): void
Extracts the flag constant and the vector of edge E.
Parameters (2)ICE
- UnSet(IC: number, V: TopoDS_Vertex): void
Extracts the vector of the vertex V.
Parameters (2)ICV
- GetBounds(IC: number, E: TopoDS_Edge, First: number, Last: number): { returnValue: boolean; First: number; Last: number }
Returns in First and Last extremities of the part of variable vector framing E, returns False if E is flagged as edge constant.
Parameters (4)ICEFirstLast
ReturnsA result object with fields:
returnValue: the C++ return valueFirst: updated value from the call.Last: updated value from the call.
- GetLaw(IC: number, E: TopoDS_Edge): Law_Function
Returns the rule of elementary evolution of the part to variable vector framing E, returns a rule zero if E is flagged as edge constant.
Parameters (2)ICE
- SetLaw(IC: number, E: TopoDS_Edge, L: Law_Function): void
Sets the rule of elementary evolution of the part to variable vector framing E.
Parameters (3)ICEL
- Simulate(IC: number): voidParameters (1)
IC
- NbSurf(IC: number): numberParameters (1)
IC
- Sect(IC: number, IS: number): NCollection_HArray1_ChFiDS_CircSectionParameters (2)
ICIS
ChFi3d_FilletShape
Properties(3)
ChFi3d_SearchSing
Searches singularities on fillet. F(t) = (C1(t) - C2(t)).(C1'(t) - C2'(t));.
Constructors(1)
- constructor(C1: Geom_Curve, C2: Geom_Curve): ChFi3d_SearchSingParameters (2)
C1C2
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
computes the value of the function <F> for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.