OpenCascade.js
API ReferenceDataExchangeTKDEIGES

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)

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)

Instance methods(7)

  • Parameters (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 redefined

    Parameters (1)
    • start
  • Parameters (3)
    • start
    • TP
    • theProgress
  • UsedTolerance(): number

    Returns the tolerance which was actually used, either from the file or from statics.

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)

Instance methods(15)

IGESToBRep_BasicSurface

Provides methods to transfer basic geometric surface entities from IGES to CASCADE. These can be:

  • Spline surface
  • BSpline surface

Constructors(3)

Instance methods(8)

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)

Instance methods(7)

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)
    • eps
    • epsGeom
    • epsCoeff
    • mode
    • modeapprox
    • optimized

Instance methods(41)

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)

Static methods(2)

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)
    • CS
    • entity
    • face
    • trans
    • uFact
    • filepreference
  • 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)
    • okCurve
    • okCurve3d
    • okCurve2d
    • curve3d
    • toreverse3d
    • curves2d
    • number_
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • okCurve: 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)
    • okCurve
    • okCurve3d
    • okCurve2d
    • curve3d
    • curves2d
    • toreverse2d
    • number_
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • okCurve: 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)
    • result
    • checkclosure
    • okCurve3d
    • okCurve2d

IGESToBRep_Reader

A simple way to read geometric IGES data. Encapsulates reading file and calling transfer tools.

Constructors(1)

Instance methods(18)

  • 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.

  • 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)
    • onlyvisible
    • theProgress
  • 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)
    • num
    • theProgress
  • 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.
  • Sets parameters for shape processing.

    Parameters (1)
    • theParameters
      the parameters for shape processing.
  • Returns parameters for shape processing that was set by SetParameters() method.

    Returns

    the 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.
  • Returns flags defining operations to be performed on shapes.

    Returns

    The flags defining operations to be performed on shapes.

IGESToBRep_TopoCurve

Provides methods to transfer topologic curves entities from IGES to CASCADE.

Constructors(4)

Instance methods(22)