BRepToIGES
OCCT package BRepToIGES: BRepToIGES_BREntity, BRepToIGES_BRShell, BRepToIGES_BRSolid, BRepToIGES_BRWire.
BRepToIGES_BREntity
provides methods to transfer BRep entity from CASCADE to IGES.
Constructors(1)
Creates a tool BREntity.
Instance methods(19)
- Init(): void
Initializes the field of the tool BREntity with default creating values.
- SetModel(model: IGESData_IGESModel): void
Set the value of "TheModel".
Parameters (1)model
Returns the value of "TheModel".
- GetUnit(): number
Returns the value of the UnitFlag of the header of the model in meters.
- SetTransferProcess(TP: Transfer_FinderProcess): void
Set the value of "TheMap".
Parameters (1)TP
Returns the value of "TheMap".
- TransferShape(start: TopoDS_Shape, theProgress?: Message_ProgressRange): IGESData_IGESEntity
Returns the result of the transfert of any Shape If the transfer has failed, this member return a NullEntity.
Parameters (2)starttheProgress
- AddFail(start: TopoDS_Shape, amess: string): void
Records a new Fail message.
Parameters (2)startamess
- AddFail(start: Standard_Transient, amess: string): void
Records a new Fail message.
Parameters (2)startamess
- AddWarning(start: TopoDS_Shape, amess: string): void
Records a new Warning message.
Parameters (2)startamess
- AddWarning(start: Standard_Transient, amess: string): void
Records a new Warning message.
Parameters (2)startamess
- HasShapeResult(start: TopoDS_Shape): boolean
Returns True if start was already treated and has a result in "TheMap" else returns False.
Parameters (1)start
- HasShapeResult(start: Standard_Transient): boolean
Returns True if start was already treated and has a result in "TheMap" else returns False.
Parameters (1)start
- GetShapeResult(start: TopoDS_Shape): Standard_Transient
Returns the result of the transfer of the Shape "start" contained in "TheMap". (if HasShapeResult is True).
Parameters (1)start
Returns the result of the transfer of the Transient "start" contained in "TheMap". (if HasShapeResult is True).
Parameters (1)start
- SetShapeResult(start: TopoDS_Shape, result: Standard_Transient): void
set in "TheMap" the result of the transfer of the Shape "start".
Parameters (2)startresult
- SetShapeResult(start: Standard_Transient, result: Standard_Transient): void
set in "TheMap" the result of the transfer of the Transient "start".
Parameters (2)startresult
- GetConvertSurfaceMode(): boolean
Returns mode for conversion of surfaces (value of parameter write.convertsurface.mode).
- GetPCurveMode(): boolean
Returns mode for writing pcurves (value of parameter write.surfacecurve.mode).
BRepToIGES_BRShell
This class implements the transfer of Shape Entities from Geom To IGES. These can be: . Vertex . Edge . Wire.
Constructors(2)
- Parameters (1)
BR
Instance methods(3)
- TransferShell(start: TopoDS_Shape, theProgress: Message_ProgressRange): IGESData_IGESEntity
Transfer an Shape entity from
TopoDSto IGES This entity must be a Face or a Shell. If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
- TransferShell(start: TopoDS_Shell, theProgress: Message_ProgressRange): IGESData_IGESEntity
Transfer an Shell entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
- TransferFace(start: TopoDS_Face, theProgress?: Message_ProgressRange): IGESData_IGESEntity
Transfer a Face entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
BRepToIGES_BRSolid
This class implements the transfer of Shape Entities from Geom To IGES. These can be: . Vertex . Edge . Wire.
Constructors(2)
- Parameters (1)
BR
Instance methods(4)
- TransferSolid(start: TopoDS_Shape, theProgress: Message_ProgressRange): IGESData_IGESEntity
Transfer a Shape entity from
TopoDSto IGES this entity must be a Solid or a CompSolid or a Compound. If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
- TransferSolid(start: TopoDS_Solid, theProgress: Message_ProgressRange): IGESData_IGESEntity
Transfer a Solid entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
- TransferCompSolid(start: TopoDS_CompSolid, theProgress?: Message_ProgressRange): IGESData_IGESEntity
Transfer an CompSolid entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
- TransferCompound(start: TopoDS_Compound, theProgress?: Message_ProgressRange): IGESData_IGESEntity
Transfer a Compound entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (2)starttheProgress
BRepToIGES_BRWire
This class implements the transfer of Shape Entities from Geom To IGES. These can be: . Vertex . Edge . Wire.
Constructors(2)
- Parameters (1)
BR
Instance methods(10)
- TransferWire(start: TopoDS_Shape): IGESData_IGESEntity
Transfer a Shape entity from
TopoDSto IGES this entity must be a Vertex or an Edge or a Wire. If this Entity could not be converted, this member returns a NullEntity.Parameters (1)start
- TransferWire(mywire: TopoDS_Wire): IGESData_IGESEntity
Transfer a Wire entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (1)mywire
- TransferWire(theWire: TopoDS_Wire, theFace: TopoDS_Face, theOriginMap: NCollection_DataMap_TopoDS_Shape_TopoDS_Shape_TopTools_ShapeMapHasher, theLength: number): { returnValue: IGESData_IGESEntity; theCurve2d: IGESData_IGESEntity; [Symbol.dispose](): void }
Transfer a Wire entity from
TopoDSto IGES.Parameters (4)theWire—input wiretheFace—input facetheOriginMap—shapemap contains the original shapes. Should be empty if face is not reversedtheLength—input surface length
ReturnsA result object with fields:
returnValue: Iges entity (the curve associated to mywire in the parametric space of myface) or null if could not be convertedtheCurve2d: input curve 2d, owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- TransferVertex(myvertex: TopoDS_Vertex): IGESData_IGESEntity
Transfer a Vertex entity from
TopoDSto IGES If this Entity could not be converted, this member returns a NullEntity.Parameters (1)myvertex
- TransferVertex(myvertex: TopoDS_Vertex, myedge: TopoDS_Edge, parameter: number): { returnValue: IGESData_IGESEntity; parameter: number; [Symbol.dispose](): void }
Transfer a Vertex entity on an Edge from
TopoDSto IGES Returns the parameter of myvertex on myedge. If this Entity could not be converted, this member returns a NullEntity.Parameters (3)myvertexmyedgeparameter
ReturnsA result object with fields:
returnValue: the C++ return valueparameter: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- TransferVertex(myvertex: TopoDS_Vertex, myface: TopoDS_Face, mypoint: gp_Pnt2d): IGESData_IGESEntity
Transfer a Vertex entity on a Face from
TopoDSto IGES Returns the parameters of myvertex on myface If this Entity could not be converted, this member returns a NullEntity.Parameters (3)myvertexmyfacemypoint—Mutated in place; read the updated value from this argument after the call.
- TransferVertex(myvertex: TopoDS_Vertex, myedge: TopoDS_Edge, myface: TopoDS_Face, parameter: number): { returnValue: IGESData_IGESEntity; parameter: number; [Symbol.dispose](): void }
Transfer a Vertex entity of an edge on a Face from
TopoDSto IGES Returns the parameter of myvertex on the pcurve of myedge on myface If this Entity could not be converted, this member returns a NullEntity.Parameters (4)myvertexmyedgemyfaceparameter
ReturnsA result object with fields:
returnValue: the C++ return valueparameter: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- TransferVertex(myvertex: TopoDS_Vertex, myedge: TopoDS_Edge, mysurface: Geom_Surface, myloc: TopLoc_Location, parameter: number): { returnValue: IGESData_IGESEntity; parameter: number; [Symbol.dispose](): void }
Transfer a Vertex entity of an edge on a Surface from
TopoDSto IGES Returns the parameter of myvertex on the pcurve of myedge on mysurface If this Entity could not be converted, this member returns a NullEntity.Parameters (5)myvertexmyedgemysurfacemylocparameter
ReturnsA result object with fields:
returnValue: the C++ return valueparameter: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
- TransferEdge(theEdge: TopoDS_Edge, theOriginMap: NCollection_DataMap_TopoDS_Shape_TopoDS_Shape_TopTools_ShapeMapHasher, theIsBRepMode: boolean): IGESData_IGESEntity
Transfer an Edge 3d entity from
TopoDSto IGES If edge is REVERSED and isBRepMode is False 3D edge curve is reversed.Parameters (3)theEdge—input edge to transfertheOriginMap—shapemap contains the original shapes. Should be empty if face is not reversedtheIsBRepMode—indicates if write mode is BRep
ReturnsIges entity or null if could not be converted
- TransferEdge(theEdge: TopoDS_Edge, theFace: TopoDS_Face, theOriginMap: NCollection_DataMap_TopoDS_Shape_TopoDS_Shape_TopTools_ShapeMapHasher, theLength: number, theIsBRepMode: boolean): IGESData_IGESEntity
Transfer an Edge 2d entity on a Face from
TopoDSto IGES.Parameters (5)theEdge—input edge to transfertheFace—input face to get the surface and UV coordinates from ittheOriginMap—shapemap contains the original shapes. Should be empty if face is not reversedtheLength—input surface lengththeIsBRepMode—indicates if write mode is BRep
ReturnsIges entity or null if could not be converted