IGESToBRep
OCCT package IGESToBRep: IGESToBRep, IGESToBRep_Actor, IGESToBRep_AlgoContainer, IGESToBRep_BasicCurve, and 7 more bound classes.
IGESToBRep
Provides tools in order to transfer IGES entities to CAS.CADE.
Constructors(1)
Static methods(11)
- Init(): void
Creates and initializes default AlgoContainer.
- SetAlgoContainer(aContainer: IGESToBRep_AlgoContainer): void
Sets default AlgoContainer.
Parameters (1)aContainer
Returns default AlgoContainer.
- IsCurveAndSurface(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferCurveAndSurface. ex: All IGESEntity from
IGESGeom.Parameters (1)start
- IsBasicCurve(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferBasicCurve. ex: CircularArc, ConicArc, Line, CopiousData, BSplineCurve, SplineCurve... from
IGESGeom: 104,110,112,126.Parameters (1)start
- IsBasicSurface(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferBasicSurface. ex: BSplineSurface, SplineSurface... from
IGESGeom: 114,128.Parameters (1)start
- IsTopoCurve(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferTopoCurve. ex: all Curves from
IGESGeom: all basic curves,102,130,142,144.Parameters (1)start
- IsTopoSurface(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferTopoSurface. ex: All Surfaces from
IGESGeom: all basic surfaces,108,118,120,122,141,143.Parameters (1)start
- IsBRepEntity(start: IGESData_IGESEntity): boolean
Return True if the IGESEntity can be transferred by TransferBRepEntity. ex: VertexList, EdgeList, Loop, Face, Shell, Manifold Solid BRep Object from
IGESSolid: 502, 504, 508, 510, 514, 186.Parameters (1)start
- IGESCurveToSequenceOfIGESCurve(curve: IGESData_IGESEntity): { returnValue: number; sequence: NCollection_HSequence_handle_Standard_Transient; [Symbol.dispose](): void }Parameters (1)
curve
- TransferPCurve(fromedge: TopoDS_Edge, toedge: TopoDS_Edge, face: TopoDS_Face): booleanParameters (3)
fromedgetoedgeface
IGESToBRep_Actor
This class performs the transfer of an Entity from IGESToBRep.
I.E. for each type of Entity, it invokes the appropriate Tool then returns the Binder which contains the Result
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(7)
- SetModel(model: Interface_InterfaceModel): voidParameters (1)
model
- SetContinuity(continuity?: number): void
--Purpose By default continuity = 0 if continuity = 1 : try C1 if continuity = 2 : try C2
Parameters (1)continuity
- GetContinuity(): number
Return "thecontinuity".
- Recognize(start: Standard_Transient): boolean
Prerequisite for Transfer : the method Transfer is called on a starting object only if Recognize has returned True on it This allows to define a list of Actors, each one processing a definite kind of data TransferProcess calls Recognize on each one before calling Transfer. But even if Recognize has returned True, Transfer can reject by returning a Null Binder (afterwards rejection), the next actor is then invoked.
The provided default returns True, can be redefinedParameters (1)start
- Transfer(start: Standard_Transient, TP: Transfer_TransientProcess, theProgress?: Message_ProgressRange): Transfer_BinderParameters (3)
startTPtheProgress
- UsedTolerance(): number
Returns the tolerance which was actually used, either from the file or from statics.
IGESToBRep_AlgoContainer
Constructors(1)
Empty constructor.
Static methods(2)
- get_type_name(): string
Instance methods(3)
- SetToolContainer(TC: IGESToBRep_ToolContainer): void
Sets ToolContainer.
Parameters (1)TC
Returns ToolContainer.
IGESToBRep_BasicCurve
Provides methods to transfer basic geometric curves entities from IGES to CASCADE. These can be:
- Circular arc
- Conic arc
- Spline curve
- BSpline curve
- Line
- Copious data
- Point
- Transformation matrix
Constructors(3)
Creates a tool BasicCurve ready to run, with epsilons set to 1.E-04, TheModeTopo to True, the optimization of the continuity to False.
Creates a tool BasicCurve ready to run and sets its fields as CS's.
Parameters (1)CS
- constructor(eps: number, epsGeom: number, epsCoeff: number, mode: boolean, modeapprox: boolean, optimized: boolean): IGESToBRep_BasicCurve
Creates a tool BasicCurve ready to run.
Parameters (6)epsepsGeomepsCoeffmodemodeapproxoptimized
Instance methods(15)
Transfer a IGESEntity which answer True to the member : IGESToBRep::IsBasicCurve(IGESEntity). If this Entity could not be converted, this member returns a NullEntity.
Parameters (1)start
Transfert a IGESEntity which answer True to the member : IGESToBRep::IsBasicCurve(IGESEntity). The IGESEntity must be a curve UV and its associed TRSF must be planar. If this Entity could not be converted, this member returns a NullEntity.
Parameters (1)start
- Parameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
- TransferConicArc(start: IGESGeom_ConicArc): Geom_CurveParameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
- TransferLine(start: IGESGeom_Line): Geom_CurveParameters (1)
start
- Transfer2dLine(start: IGESGeom_Line): Geom2d_CurveParameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
- Parameters (1)
start
IGESToBRep_BasicSurface
Provides methods to transfer basic geometric surface entities from IGES to CASCADE. These can be:
- Spline surface
- BSpline surface
Constructors(3)
Creates a tool BasicSurface ready to run, with epsilons set to 1.E-04, TheModeTopo to True, the optimization of the continuity to False.
Creates a tool BasicSurface ready to run and sets its fields as CS's.
Parameters (1)CS
- constructor(eps: number, epsGeom: number, epsCoeff: number, mode: boolean, modeapprox: boolean, optimized: boolean): IGESToBRep_BasicSurface
Creates a tool BasicSurface ready to run.
Parameters (6)epsepsGeomepsCoeffmodemodeapproxoptimized
Instance methods(8)
Returns Surface from Geom if the last transfer has succeeded.
Parameters (1)start
Returns Plane from Geom if the transfer has succeeded.
Parameters (1)start
Returns CylindricalSurface from Geom if the transfer has succeeded.
Parameters (1)start
Returns ConicalSurface from Geom if the transfer has succeeded.
Parameters (1)start
Returns SphericalSurface from Geom if the transfer has succeeded.
Parameters (1)start
Returns SphericalSurface from Geom if the transfer has succeeded.
Parameters (1)start
Returns BSplineSurface from Geom if the transfer has succeeded.
Parameters (1)start
Returns BSplineSurface from Geom if the transfer has succeeded.
Parameters (1)start
IGESToBRep_BRepEntity
Provides methods to transfer BRep entities ( VertexList 502, EdgeList 504, Loop 508, Face 510, Shell 514, ManifoldSolid 186) from IGES to CASCADE.
Constructors(3)
Creates a tool BRepEntity ready to run, with epsilons set to 1.E-04, TheModeTopo to True, the optimization of the continuity to False.
Creates a tool BRepEntity ready to run and sets its fields as CS's.
Parameters (1)CS
- constructor(eps: number, epsGeom: number, epsCoeff: number, mode: boolean, modeapprox: boolean, optimized: boolean): IGESToBRep_BRepEntity
Creates a tool BRepEntity ready to run.
Parameters (6)epsepsGeomepsCoeffmodemodeapproxoptimized
Instance methods(7)
- TransferBRepEntity(start: IGESData_IGESEntity, theProgress?: Message_ProgressRange): TopoDS_Shape
Transfer the BRepEntity" : Face, Shell or ManifoldSolid.
Parameters (2)starttheProgress
- TransferVertex(start: IGESSolid_VertexList, index: number): TopoDS_Vertex
Transfer the entity number "index" of the VertexList "start".
Parameters (2)startindex
- TransferEdge(start: IGESSolid_EdgeList, index: number): TopoDS_Shape
Transfer the entity number "index" of the EdgeList "start".
Parameters (2)startindex
- TransferLoop(start: IGESSolid_Loop, Face: TopoDS_Face, trans: gp_Trsf2d, uFact: number): TopoDS_Shape
Transfer the Loop Entity.
Parameters (4)startFacetransuFact
- TransferFace(start: IGESSolid_Face): TopoDS_Shape
Transfer the Face Entity.
Parameters (1)start
- TransferShell(start: IGESSolid_Shell, theProgress?: Message_ProgressRange): TopoDS_Shape
Transfer the Shell Entity.
Parameters (2)starttheProgress
- TransferManifoldSolid(start: IGESSolid_ManifoldSolid, theProgress?: Message_ProgressRange): TopoDS_Shape
Transfer the ManifoldSolid Entity.
Parameters (2)starttheProgress
IGESToBRep_CurveAndSurface
Provides methods to transfer CurveAndSurface from IGES to CASCADE.
Constructors(2)
Creates a tool CurveAndSurface ready to run, with epsilons set to 1.E-04, myModeTopo to True, the optimization of the continuity to False.
- constructor(eps: number, epsGeom: number, epsCoeff: number, mode: boolean, modeapprox: boolean, optimized: boolean): IGESToBRep_CurveAndSurface
Creates a tool CurveAndSurface ready to run.
Parameters (6)epsepsGeomepsCoeffmodemodeapproxoptimized
Instance methods(41)
- Init(): void
Initializes the field of the tool CurveAndSurface with default creating values.
- SetEpsilon(eps: number): void
Changes the value of "myEps".
Parameters (1)eps
- GetEpsilon(): number
Returns the value of "myEps".
- SetEpsCoeff(eps: number): void
Changes the value of "myEpsCoeff".
Parameters (1)eps
- GetEpsCoeff(): number
Returns the value of "myEpsCoeff".
- SetEpsGeom(eps: number): void
Changes the value of "myEpsGeom".
Parameters (1)eps
- GetEpsGeom(): number
Returns the value of "myEpsGeom".
- SetMinTol(mintol: number): void
Changes the value of "myMinTol".
Parameters (1)mintol
- SetMaxTol(maxtol: number): void
Changes the value of "myMaxTol".
Parameters (1)maxtol
- UpdateMinMaxTol(): void
Sets values of "myMinTol" and "myMaxTol" as follows myMaxTol = Max ("read.maxprecision.val", myEpsGeom * myUnitFactor) myMinTol =
Precision::Confusion()Remark: This method is automatically invoked each time the values of "myEpsGeom" or "myUnitFactor" are changed. - GetMinTol(): number
Returns the value of "myMinTol".
- GetMaxTol(): number
Returns the value of "myMaxTol".
- SetModeApprox(mode: boolean): void
Changes the value of "myModeApprox".
Parameters (1)mode
- GetModeApprox(): boolean
Returns the value of "myModeApprox".
- SetModeTransfer(mode: boolean): void
Changes the value of "myModeIsTopo".
Parameters (1)mode
- GetModeTransfer(): boolean
Returns the value of "myModeIsTopo".
- SetOptimized(optimized: boolean): void
Changes the value of "myContIsOpti".
Parameters (1)optimized
- GetOptimized(): boolean
Returns the value of "myContIsOpti".
- GetUnitFactor(): number
Returns the value of " myUnitFactor".
- SetSurfaceCurve(ival: number): void
Changes the value of "mySurfaceCurve".
Parameters (1)ival
- GetSurfaceCurve(): number
Returns the value of "mySurfaceCurve" 0 = value in file, 2 = keep 2d and compute 3d, 3 = keep 3d and compute 2d.
- SetModel(model: IGESData_IGESModel): void
Set the value of "myModel".
Parameters (1)model
Returns the value of "myModel".
- SetContinuity(continuity: number): void
Changes the value of "myContinuity" if continuity = 0 do nothing else if continuity = 1 try C1 if continuity = 2 try C2.
Parameters (1)continuity
- GetContinuity(): number
Returns the value of "myContinuity".
- SetTransferProcess(TP: Transfer_TransientProcess): void
Set the value of "myMsgReg".
Parameters (1)TP
Returns the value of "myMsgReg".
- TransferCurveAndSurface(start: IGESData_IGESEntity, theProgress?: Message_ProgressRange): TopoDS_Shape
Returns the result of the transfert of any IGES Curve or Surface Entity. If the transfer has failed, this member return a NullEntity.
Parameters (2)starttheProgress
- TransferGeometry(start: IGESData_IGESEntity, theProgress?: Message_ProgressRange): TopoDS_Shape
Returns the result of the transfert the geometry of any IGESEntity. If the transfer has failed, this member return a NullEntity.
Parameters (2)starttheProgress
- SendFail(start: IGESData_IGESEntity, amsg: Message_Msg): void
Records a new Fail message.
Parameters (2)startamsg
- SendWarning(start: IGESData_IGESEntity, amsg: Message_Msg): void
Records a new Warning message.
Parameters (2)startamsg
- SendMsg(start: IGESData_IGESEntity, amsg: Message_Msg): void
Records a new Information message from the definition of a Msg (Original+Value).
Parameters (2)startamsg
- HasShapeResult(start: IGESData_IGESEntity): boolean
Returns True if start was already treated and has a result in "myMap" else returns False.
Parameters (1)start
Returns the result of the transfer of the IGESEntity "start" contained in "myMap" . (if HasShapeResult is True).
Parameters (1)start
- GetShapeResult(start: IGESData_IGESEntity, num: number): TopoDS_Shape
Returns the numth result of the IGESEntity start (type VertexList or EdgeList) in "myMap". (if NbShapeResult is not null).
Parameters (2)startnum
- SetShapeResult(start: IGESData_IGESEntity, result: TopoDS_Shape): void
set in "myMap" the result of the transfer of the IGESEntity "start".
Parameters (2)startresult
- NbShapeResult(start: IGESData_IGESEntity): number
Returns the number of shapes results contained in "myMap" for the IGESEntity start (type VertexList or EdgeList).
Parameters (1)start
- AddShapeResult(start: IGESData_IGESEntity, result: TopoDS_Shape): void
set in "myMap" the result of the transfer of the entity of the IGESEntity start (type VertexList or EdgeList).
Parameters (2)startresult
- SetSurface(theSurface: Geom_Surface): voidParameters (1)
theSurface
- GetUVResolution(): number
IGESToBRep_IGESBoundary
This class is intended to translate IGES boundary entity (142-CurveOnSurface, 141-Boundary or 508-Loop) into the wire. Methods Transfer are virtual and are redefined in Advanced Data Exchange to optimize the translation and take into account advanced parameters.
Constructors(2)
Empty constructor.
Empty constructor.
Parameters (1)CS
Static methods(2)
- get_type_name(): string
Instance methods(8)
- Init(CS: IGESToBRep_CurveAndSurface, entity: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: number, filepreference: number): void
Inits the object with parameters common for all types of IGES boundaries. <CS>: object to be used for retrieving translation parameters and sending messages, <entity>: boundary entity to be processed, <face>, <trans>, <uFact>: as for
IGESToBRep_TopoCurve<filepreference>: preferred representation (2 or 3) given in the IGES file.Parameters (6)CSentityfacetransuFactfilepreference
Returns the resulting wire.
Returns the wire from 3D curves (edges contain 3D curves and may contain pcurves).
Returns the wire from 2D curves (edges contain pcurves only).
- Transfer(okCurve: boolean, okCurve3d: boolean, okCurve2d: boolean, curve3d: IGESData_IGESEntity, toreverse3d: boolean, curves2d: NCollection_HArray1_handle_IGESData_IGESEntity, number_: number): { returnValue: boolean; okCurve: boolean; okCurve3d: boolean; okCurve2d: boolean }
Translates 141 and 142 entities. Returns True if the curve has been successfully translated, otherwise returns False. <okCurve..>: flags that indicate whether corresponding representation has been successfully translated (must be set to True before first call), <curve3d>: model space curve for 142 and current model space curve for 141, <toreverse3d>: False for 142 and current orientation flag for 141, <curves2d>: 1 parameter space curve for 142 or list of them for current model space curves for 141, <number>: 1 for 142 and rank number of model space curve for 141.
Parameters (7)okCurveokCurve3dokCurve2dcurve3dtoreverse3dcurves2dnumber_
ReturnsA result object with fields:
returnValue: the C++ return valueokCurve: updated value from the call.okCurve3d: updated value from the call.okCurve2d: updated value from the call.
- Transfer(okCurve: boolean, okCurve3d: boolean, okCurve2d: boolean, curve3d: ShapeExtend_WireData, curves2d: NCollection_HArray1_handle_IGESData_IGESEntity, toreverse2d: boolean, number_: number): { returnValue: boolean; okCurve: boolean; okCurve3d: boolean; okCurve2d: boolean; lsewd: ShapeExtend_WireData; [Symbol.dispose](): void }
Translates 508 entity. Returns True if the curve has been successfully translated, otherwise returns False. Input object IGESBoundary must be created and initialized before. <okCurve..>: flags that indicate whether corresponding representation has been successfully translated (must be set to True before first call), <curve3d>: result of translation of current edge, <curves2d>: list of parameter space curves for edge, <toreverse2d>: orientation flag of current edge in respect to its model space curve, <number>: rank number of edge, <lsewd>: returns the result of translation of current edge.
Parameters (7)okCurveokCurve3dokCurve2dcurve3dcurves2dtoreverse2dnumber_
ReturnsA result object with fields:
returnValue: the C++ return valueokCurve: updated value from the call.okCurve3d: updated value from the call.okCurve2d: updated value from the call.lsewd: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- Check(result: boolean, checkclosure: boolean, okCurve3d: boolean, okCurve2d: boolean): void
Checks result of translation of IGES boundary entities (types 141, 142 or 508). Checks consistency of 2D and 3D representations and keeps only one if they are inconsistent. <result>: result of translation (returned by Transfer), <checkclosure>: False for 142 without parent 144 entity, otherwise True, <okCurve3d>, <okCurve2d>: those returned by Transfer.
Parameters (4)resultcheckclosureokCurve3dokCurve2d
IGESToBRep_Reader
A simple way to read geometric IGES data. Encapsulates reading file and calling transfer tools.
Constructors(1)
Creates a Reader.
Instance methods(18)
- SetModel(model: IGESData_IGESModel): void
Specifies a Model to work on Also clears the result and Done status, sets TransientProcess.
Parameters (1)model
Returns the Model to be worked on.
- SetTransientProcess(TP: Transfer_TransientProcess): void
Allows to set an already defined TransientProcess (to be called after LoadFile or SetModel).
Parameters (1)TP
Returns the TransientProcess.
Returns "theActor".
- Clear(): void
Clears the results between two translation operations.
- Check(withprint: boolean): boolean
Checks the IGES file that was loaded into memory. Displays error messages in the default message file if withprint is true. Returns True if no fail message was found and False if there was at least one fail message.
Parameters (1)withprint
- TransferRoots(onlyvisible?: boolean, theProgress?: Message_ProgressRange): void
Translates root entities in an IGES file. true is the default value and means that only visible root entities are translated. false translates all of the roots (visible and invisible).
Parameters (2)onlyvisibletheProgress
- Transfer(num: number, theProgress?: Message_ProgressRange): boolean
Transfers an Entity given its rank in the Model (Root or not) Returns True if it is recognized as Geom-Topol. (But it can have failed : see IsDone).
Parameters (2)numtheProgress
- IsDone(): boolean
Returns True if the LAST Transfer/TransferRoots was a success.
- UsedTolerance(): number
Returns the Tolerance which has been actually used, converted in millimeters (either that from File or that from Session, according the mode).
- NbShapes(): number
Returns the number of shapes produced by the translation.
- Shape(num?: number): TopoDS_Shape
Returns the num the resulting shape in a translation operation.
Parameters (1)num
Returns all of the results in a single shape which is:
- a null shape if there are no results,
- a shape if there is one result,
- a compound containing the resulting shapes if there are several.
- SetShapeFixParameters(theParameters: NCollection_DataMap_TCollection_AsciiString_TCollection_AsciiString): void
Sets parameters for shape processing.
Parameters (1)theParameters—the parameters for shape processing.
Returns parameters for shape processing that was set by SetParameters() method.
Returnsthe parameters for shape processing. Empty map if no parameters were set.
- SetShapeProcessFlags(theFlags: any): void
Sets flags defining operations to be performed on shapes.
Parameters (1)theFlags—The flags defining operations to be performed on shapes.
- GetShapeProcessFlags(): any
Returns flags defining operations to be performed on shapes.
ReturnsThe flags defining operations to be performed on shapes.
IGESToBRep_ToolContainer
Constructors(1)
Empty constructor.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns
IGESToBRep_IGESBoundary.
IGESToBRep_TopoCurve
Provides methods to transfer topologic curves entities from IGES to CASCADE.
Constructors(4)
Creates a tool TopoCurve ready to run, with epsilons set to 1.E-04, TheModeTopo to True, the optimization of the continuity to False.
Creates a tool TopoCurve ready to run and sets its fields as CS's.
Parameters (1)CS
Creates a tool TopoCurve ready to run and sets its fields as CS's.
Parameters (1)CS
- constructor(eps: number, epsGeom: number, epsCoeff: number, mode: boolean, modeapprox: boolean, optimized: boolean): IGESToBRep_TopoCurve
Creates a tool TopoCurve ready to run.
Parameters (6)epsepsGeomepsCoeffmodemodeapproxoptimized
Instance methods(22)
- Parameters (1)
start
- Transfer2dTopoCurve(start: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: number): TopoDS_ShapeParameters (4)
startfacetransuFact
- Parameters (1)
start
- Transfer2dTopoBasicCurve(start: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: number): TopoDS_ShapeParameters (4)
startfacetransuFact
- TransferPoint(start: IGESGeom_Point): TopoDS_VertexParameters (1)
start
- Transfer2dPoint(start: IGESGeom_Point): TopoDS_VertexParameters (1)
start
- Parameters (1)
start
- Transfer2dCompositeCurve(start: IGESGeom_CompositeCurve, face: TopoDS_Face, trans: gp_Trsf2d, uFact: number): TopoDS_ShapeParameters (4)
startfacetransuFact
- Parameters (1)
start
- Transfer2dOffsetCurve(start: IGESGeom_OffsetCurve, face: TopoDS_Face, trans: gp_Trsf2d, uFact: number): TopoDS_ShapeParameters (4)
startfacetransuFact
- Parameters (1)
start
- TransferCurveOnFace(face: TopoDS_Face, start: IGESGeom_CurveOnSurface, trans: gp_Trsf2d, uFact: number, IsCurv: boolean): TopoDS_Shape
Transfers a CurveOnSurface directly on a face to trim it. The CurveOnSurface have to be defined Outer or Inner.
Parameters (5)face—Mutated in place; read the updated value from this argument after the call.starttransuFactIsCurv
- Parameters (1)
start
- TransferBoundaryOnFace(face: TopoDS_Face, start: IGESGeom_Boundary, trans: gp_Trsf2d, uFact: number): TopoDS_Shape
Transfers a Boundary directly on a face to trim it.
Parameters (4)face—Mutated in place; read the updated value from this argument after the call.starttransuFact
- ApproxBSplineCurve(start: Geom_BSplineCurve): voidParameters (1)
start
- NbCurves(): number
Returns the count of Curves in "TheCurves".
- Curve(num?: number): Geom_Curve
Returns a Curve given its rank, by default the first one (null Curvee if out of range) in "TheCurves".
Parameters (1)num
- Approx2dBSplineCurve(start: Geom2d_BSplineCurve): voidParameters (1)
start
- NbCurves2d(): number
Returns the count of Curves in "TheCurves2d".
- Curve2d(num?: number): Geom2d_Curve
Returns a Curve given its rank, by default the first one (null Curvee if out of range) in "TheCurves2d".
Parameters (1)num
- SetBadCase(value: boolean): void
Sets TheBadCase flag.
Parameters (1)value
- BadCase(): boolean
Returns TheBadCase flag.