OpenCascade.js
API ReferenceDataExchangeTKDEIGES

IGESControl

OCCT package IGESControl: IGESControl_ActorWrite, IGESControl_AlgoContainer, IGESControl_Controller, IGESControl_IGESBoundary, and 3 more bound classes.

IGESControl_ActorWrite

Actor to write Shape to IGES.

Constructors(1)

Static methods(2)

Instance methods(3)

IGESControl_Controller

Controller for IGES-5.1.

Constructors(1)

  • constructor(modefnes?: boolean): IGESControl_Controller

    Initializes the use of IGES Norm (the first time) and returns a Controller for IGES-5.1 If <modefnes> is True, sets it to internal FNES format.

    Parameters (1)
    • modefnes

Static methods(3)

  • Init(): boolean

    Standard Initialisation. It creates a Controller for IGES and records it to various names, available to select it later Returns True when done, False if could not be done Also, it creates and records an Adaptor for FNES.

  • get_type_name(): string

Instance methods(5)

IGESControl_IGESBoundary

Translates IGES boundary entity (types 141, 142 and 508) in Advanced Data Exchange. Redefines translation and treatment methods from inherited open class IGESToBRep_IGESBoundary.

Constructors(2)

Static methods(2)

Instance methods(2)

  • 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. Checks the closure of resulting wire and if it is not closed, checks 2D and 3D representation and updates the resulting wire to contain only closed representation.

    Parameters (4)
    • result
    • checkclosure
    • okCurve3d
    • okCurve2d

IGESControl_Reader

Reads IGES files, checks them and translates their contents into Open CASCADE models. The IGES data can be that of a whole model or that of a specific list of entities in the model. As in XSControl_Reader, you specify the list using a selection.
For translation of iges files it is possible to use the following sequence: To change parameters of translation class Interface_Static should be used before the beginning of translation (see IGES Parameters and General Parameters) Creation of reader IGESControl_Reader reader; To load a file in a model use method: reader.ReadFile("filename.igs") To check a loading file use method Check: reader.Check(failsonly); where failsonly is equal to true or false; To print the results of load: reader.PrintCheckLoad(failsonly,mode) where mode is equal to the value of enumeration IFSelect_PrintCount To transfer entities from a model the following methods can be used: for the whole model reader.TransferRoots(onlyvisible); where onlyvisible is equal to true or false; To transfer a list of entities: reader.TransferList(list); To transfer one entity reader.TransferEntity(ent) or reader.Transfer(num); To obtain a result the following method
can be used: reader.IsDone() reader.NbShapes() and reader.Shape(num); or reader.OneShape(); To print the results of transfer use method: reader.PrintTransferInfo(failwarn,mode); where printfail is equal to the value of enumeration IFSelect_PrintFail, mode see above.
Gets correspondence between an IGES entity and a result shape obtained therefrom. reader.TransientProcess(); TopoDS_Shape shape = TransferBRep::ShapeResult(reader.TransientProcess(),ent);.

Constructors(2)

Instance methods(4)

IGESControl_Writer

This class creates and writes IGES files from CAS.CADE models. An IGES file can be written to an existing IGES file or to a new one. The translation can be performed in one or several operations. Each translation operation outputs a distinct root entity in the IGES file. To write an IGES file it is possible to use the following sequence: To modify the IGES file header or to change translation parameters it is necessary to use class Interface_Static (see IGESParameters and GeneralParameters).

Constructors(3)

  • Creates a writer object with the default unit (millimeters) and write mode (Face). IGESControl_Writer (const char* const unit, const int modecr = 0);.

  • constructor(theUnit: string, theModecr?: number): IGESControl_Writer

    Creates a writer with given values for units and for write mode. theUnit may be any unit that is accepted by the IGES standard. By default, it is the millimeter. theModecr defines the write mode and may be:

    • 0: Faces (default)
    • 1: BRep.
    Parameters (2)
    • theUnit
    • theModecr
  • constructor(theModel: IGESData_IGESModel, theModecr?: number): IGESControl_Writer

    Creates a writer object with the prepared IGES model theModel in write mode. theModecr defines the write mode and may be:

    • 0: Faces (default)
    • 1: BRep.
    Parameters (2)
    • theModel
    • theModecr

Instance methods(11)