OCC.IGESControl module

-Purpose : This package provide external access and control to use IGESSee also IGESToBRep for reading IGES to Shapes

class Handle_IGESControl_ActorWrite(*args)

Bases: object

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_IGESControl_AlgoContainer(*args)

Bases: object

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_IGESControl_Controller(*args)

Bases: OCC.XSControl.Handle_XSControl_Controller

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_IGESControl_IGESBoundary(*args)

Bases: object

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_IGESControl_ToolContainer(*args)

Bases: object

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class IGESControl_ActorWrite(*args)

Bases: object

Return type:None
GetHandle()
Recognize()
  • Recognizes a ShapeMapper
Parameters:start (Handle_Transfer_Finder &) –
Return type:bool
Transfer()
  • Transfers Shape to IGES Entities //! ModeTrans may be : 0 -> groups of Faces or 1 -> BRep
Parameters:
  • start (Handle_Transfer_Finder &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

Handle_Transfer_Binder

thisown

The membership flag

class IGESControl_AlgoContainer(*args)

Bases: object

  • Empty constructor
Return type:None
GetHandle()
thisown

The membership flag

class IGESControl_Controller(*args)

Bases: OCC.XSControl.XSControl_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:modefnes (bool) – default value is Standard_False
Return type:None
GetHandle()
static Init()
  • 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
Return type:bool
thisown

The membership flag

IGESControl_Controller_Init()
  • 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
Return type:bool
class IGESControl_IGESBoundary(*args)

Bases: object

  • Creates an object and calls inherited constuctor.
Return type:None
  • Creates an object and calls inherited constuctor.
Parameters:CS (IGESToBRep_CurveAndSurface &) –
Return type:None
Check()
  • 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:
  • result (bool) –
  • checkclosure (bool) –
  • okCurve3d (bool) –
  • okCurve2d (bool) –
Return type:

void

GetHandle()
thisown

The membership flag

class IGESControl_Reader(*args)

Bases: OCC.XSControl.XSControl_Reader

  • Creates a Reader from scratch
Return type:None
  • Creates a Reader from an already existing Session
Parameters:
  • WS (Handle_XSControl_WorkSession &) –
  • scratch (bool) – default value is Standard_True
Return type:

None

GetReadVisible()
Return type:bool
IGESModel()
  • Returns the model as a IGESModel. It can then be consulted (header, product)
Return type:Handle_IGESData_IGESModel
PrintTransferInfo()
  • Prints Statistics and check list for Transfer
Parameters:
  • failwarn (IFSelect_PrintFail) –
  • mode (IFSelect_PrintCount) –
Return type:

None

SetReadVisible()
  • Set the transion of ALL Roots (if theReadOnlyVisible is False) or of Visible Roots (if theReadOnlyVisible is True)
Parameters:ReadRoot (bool) –
Return type:None
thisown

The membership flag

class IGESControl_ToolContainer(*args)

Bases: object

  • Empty constructor
Return type:None
GetHandle()
IGESBoundary()
  • Returns IGESControl_IGESBoundary
Return type:Handle_IGESToBRep_IGESBoundary
thisown

The membership flag

class IGESControl_Writer(*args)

Bases: object

  • Creates a writer object with the default unit (millimeters) and write mode (Face). IGESControl_Writer (const Standard_CString unit, const Standard_Integer modecr = 0);
Return type:None
  • Creates a writer with given values for units and for write mode. unit may be any unit that is accepted by the IGES standard. By default, it is the millimeter. modecr defines the write mode and may be: - 0: Faces (default) - 1: BRep.
Parameters:
  • unit (char *) –
  • modecr (int) – default value is 0
Return type:

None

  • Creates a writer object with the prepared IGES model model in write mode. modecr defines the write mode and may be: - 0: Faces (default) - 1: BRep.
Parameters:
  • model (Handle_IGESData_IGESModel &) –
  • modecr (int) – default value is 0
Return type:

None

AddEntity()
  • Adds an IGES entity (and the ones it references) to the model
Parameters:ent (Handle_IGESData_IGESEntity &) –
Return type:bool
AddGeom()
  • Translates a Geometry (Surface or Curve) to IGES Entities and adds them to the model Returns True if done, False if geom is neither a Surface or a Curve suitable for IGES or is null
Parameters:geom (Handle_Standard_Transient &) –
Return type:bool
AddShape()
  • Translates a Shape to IGES Entities and adds them to the model Returns True if done, False if Shape not suitable for IGES or null
Parameters:sh (TopoDS_Shape &) –
Return type:bool
ComputeModel()
  • Computes the entities found in the model, which is ready to be written. This contrasts with the default computation of headers only.
Return type:None
Model()
  • Returns the IGES model to be written in output.
Return type:Handle_IGESData_IGESModel
PrintStatsTransfer()
  • Prints Statistics about Transfer
Parameters:
  • what (int) –
  • mode (int) – default value is 0
Return type:

None

SetTransferProcess()
  • Returns/Sets the TransferProcess : it contains final results and if some, check messages
Parameters:TP (Handle_Transfer_FinderProcess &) –
Return type:None
TransferProcess()
Return type:Handle_Transfer_FinderProcess
Write()
  • Computes then writes the model to an OStream Returns True when done, false in case of error
Parameters:
  • S (Standard_OStream &) –
  • fnes (bool) – default value is Standard_False
Return type:

bool

  • Prepares and writes an IGES model either to an OStream, S or to a file name,CString. Returns True if the operation was performed correctly and False if an error occurred (for instance, if the processor could not create the file).
Parameters:
  • file (char *) –
  • fnes (bool) – default value is Standard_False
Return type:

bool

thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases