ShapeAlgo
OCCT package ShapeAlgo: ShapeAlgo, ShapeAlgo_AlgoContainer, ShapeAlgo_ToolContainer.
ShapeAlgo
Constructors(1)
Static methods(3)
- Init(): void
Provides initerface to the algorithms from Shape Healing. Creates and initializes default AlgoContainer.
- SetAlgoContainer(aContainer: ShapeAlgo_AlgoContainer): void
Sets default AlgoContainer.
Parameters (1)aContainer
Returns default AlgoContainer.
ShapeAlgo_AlgoContainer
Constructors(1)
Empty constructor.
Static methods(2)
- get_type_name(): string
Instance methods(15)
- SetToolContainer(TC: ShapeAlgo_ToolContainer): void
Sets ToolContainer.
Parameters (1)TC
Returns ToolContainer.
- ConnectNextWire(saw: ShapeAnalysis_Wire, nextsewd: ShapeExtend_WireData, maxtol: number, distmin: number, revsewd: boolean, revnextsewd: boolean): { returnValue: boolean; distmin: number; revsewd: boolean; revnextsewd: boolean }
Finds the best way to connect and connects <nextsewd> to already built <sewd> (in <saw>). Returns False if <nextsewd> cannot be connected, otherwise - True. <maxtol> specifies the maximum tolerance with which <nextsewd> can be added. <distmin> is used to receive the minimum distance between <nextsewd> and <sewd>. <revsewd> is True if <sewd> has been reversed before connecting. <revnextwd> is True if <nextsewd> has been reversed before connecting. Uses functionality of
ShapeAnalysis_Wire.Parameters (6)sawnextsewdmaxtoldistminrevsewdrevnextsewd
ReturnsA result object with fields:
returnValue: the C++ return valuedistmin: updated value from the call.revsewd: updated value from the call.revnextsewd: updated value from the call.
- ApproxBSplineCurve(bspline: Geom_BSplineCurve, seq: NCollection_Sequence_handle_Geom_Curve): voidParameters (2)
bsplineseq
- ApproxBSplineCurve(bspline: Geom2d_BSplineCurve, seq: NCollection_Sequence_handle_Geom2d_Curve): voidParameters (2)
bsplineseq
- C0BSplineToSequenceOfC1BSplineCurve(BS: Geom_BSplineCurve): { returnValue: boolean; seqBS: NCollection_HSequence_handle_Geom_BoundedCurve; [Symbol.dispose](): void }Parameters (1)
BS
- C0BSplineToSequenceOfC1BSplineCurve(BS: Geom2d_BSplineCurve): { returnValue: boolean; seqBS: NCollection_HSequence_handle_Geom2d_BoundedCurve; [Symbol.dispose](): void }
Converts C0 B-Spline curve into sequence of C1 B-Spline curves. Calls
ShapeUpgrade::C0BSplineToSequenceOfC1BSplineCurve.Parameters (1)BS
ReturnsA result object with fields:
returnValue: the C++ return valueseqBS: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- C0ShapeToC1Shape(shape: TopoDS_Shape, tol: number): TopoDS_Shape
Converts a shape on C0 geometry into the shape on C1 geometry.
Parameters (2)shapetol
- ConvertSurfaceToBSpline(surf: Geom_Surface, UF: number, UL: number, VF: number, VL: number): Geom_BSplineSurface
Converts a surface to B-Spline. Uses
ShapeConstruct.Parameters (5)surfUFULVFVL
- HomoWires(wireIn1: TopoDS_Wire, wireIn2: TopoDS_Wire, wireOut1: TopoDS_Wire, wireOut2: TopoDS_Wire, byParam: boolean): boolean
Return 2 wires with the same number of edges. The both Edges number i of these wires have got the same ratio between theirs parameter lengths and their wire parameter lengths.
Parameters (5)wireIn1wireIn2wireOut1—Mutated in place; read the updated value from this argument after the call.wireOut2—Mutated in place; read the updated value from this argument after the call.byParam
- OuterWire(face: TopoDS_Face): TopoDS_Wire
Returns the outer wire on the face <Face>.
Parameters (1)face
Converts surface to periodic form. Calls
ShapeCustom_Surface.Parameters (1)surf
- GetFaceUVBounds(F: TopoDS_Face, Umin: number, Umax: number, Vmin: number, Vmax: number): { Umin: number; Umax: number; Vmin: number; Vmax: number }
Computes exact UV bounds of all wires on the face.
Parameters (5)FUminUmaxVminVmax
ReturnsA result object with fields:
Umin: updated value from the call.Umax: updated value from the call.Vmin: updated value from the call.Vmax: updated value from the call.
- ConvertCurveToBSpline(C3D: Geom_Curve, First: number, Last: number, Tol3d: number, Continuity: GeomAbs_Shape, MaxSegments: number, MaxDegree: number): Geom_BSplineCurve
Convert
Geom_CurvetoGeom_BSplineCurve.Parameters (7)C3DFirstLastTol3dContinuityMaxSegmentsMaxDegree
ShapeAlgo_ToolContainer
Returns tools used by AlgoContainer.
Constructors(1)
Empty constructor.
Static methods(2)
- get_type_name(): string
Instance methods(3)
Returns
ShapeFix_Shape.Returns
ShapeFix_EdgeProjAux.