OCC.IGESControl module

class OCC.IGESControl.Handle_IGESControl_ActorWrite(*args)

Bases: object

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

The membership flag

class OCC.IGESControl.Handle_IGESControl_AlgoContainer(*args)

Bases: object

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

The membership flag

class OCC.IGESControl.Handle_IGESControl_Controller(*args)

Bases: OCC.XSControl.Handle_XSControl_Controller

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

The membership flag

class OCC.IGESControl.Handle_IGESControl_IGESBoundary(*args)

Bases: object

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

The membership flag

class OCC.IGESControl.Handle_IGESControl_ToolContainer(*args)

Bases: object

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

The membership flag

class OCC.IGESControl.IGESControl_ActorWrite

Bases: object

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 OCC.IGESControl.IGESControl_AlgoContainer

Bases: object

GetHandle()
thisown

The membership flag

class OCC.IGESControl.IGESControl_Controller(*args)

Bases: OCC.XSControl.XSControl_Controller

GetHandle()

IGESControl_Controller_GetHandle(IGESControl_Controller self) -> Handle_IGESControl_Controller

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
TransferWriteShape()
  • Takes one Shape and transfers it to the InterfaceModel (already created by NewModel for instance) <modetrans> is to be interpreted by each kind of XstepAdaptor Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape -2 bad model (requires an IGESModel) modeshape : 0 groupe of face (version < 5.1) 1 BREP-version 5.1 of IGES
Parameters:
  • shape (TopoDS_Shape &) –
  • FP (Handle_Transfer_FinderProcess &) –
  • model (Handle_Interface_InterfaceModel &) –
  • modetrans (Standard_Integer) – default value is 0
Return type:

IFSelect_ReturnStatus

  • Takes one Shape and transfers it to the InterfaceModel (already created by NewModel for instance) <modetrans> is to be interpreted by each kind of XstepAdaptor Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape -2 bad model (requires an IGESModel) modeshape : 0 groupe of face (version < 5.1) 1 BREP-version 5.1 of IGES
Parameters:
  • shape (TopoDS_Shape &) –
  • FP (Handle_Transfer_FinderProcess &) –
  • model (Handle_Interface_InterfaceModel &) –
  • modetrans (Standard_Integer) – default value is 0
Return type:

IFSelect_ReturnStatus

thisown

The membership flag

OCC.IGESControl.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 OCC.IGESControl.IGESControl_IGESBoundary(*args)

Bases: object

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 OCC.IGESControl.IGESControl_Reader(*args)

Bases: OCC.XSControl.XSControl_Reader

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 OCC.IGESControl.IGESControl_ToolContainer

Bases: object

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

The membership flag

class OCC.IGESControl.IGESControl_Writer(*args)

Bases: object

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 (Standard_Integer) –
  • mode (Standard_Integer) – default value is 0
Return type:

None

  • Prints Statistics about Transfer
Parameters:
  • what (Standard_Integer) –
  • mode (Standard_Integer) – 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

  • 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

  • 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 OCC.IGESControl.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()