# DataExchange
TKIGES
IGESToBRep

# IGESToBRep_CurveAndSurface Class Reference

Provides methods to transfer CurveAndSurface from IGES to CASCADE.
.

`#include <IGESToBRep_CurveAndSurface.hxx>`

Inheritance diagram for IGESToBRep_CurveAndSurface:

[legend]

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)
Standard_EXPORT | IGESToBRep_CurveAndSurface ()
| Creates a tool CurveAndSurface ready to run, with epsilons set to 1.E-04, myModeTopo to True, the optimization of the continuity to False. .
Standard_EXPORT | IGESToBRep_CurveAndSurface (const IGESToBRep_CurveAndSurface &CS)
| Creates a tool CurveAndSurface ready to run and sets its fields as CS's. .
Standard_EXPORT | IGESToBRep_CurveAndSurface (const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized)
| Creates a tool CurveAndSurface ready to run. .
Standard_EXPORT void | Init ()
| Initializes the field of the tool CurveAndSurface with default creating values. .
void | SetEpsilon (const Standard_Real eps)
| Changes the value of "myEps" .
Standard_Real | GetEpsilon () const
| Returns the value of "myEps" .
void | SetEpsCoeff (const Standard_Real eps)
| Changes the value of "myEpsCoeff" .
Standard_Real | GetEpsCoeff () const
| Returns the value of "myEpsCoeff" .
Standard_EXPORT void | SetEpsGeom (const Standard_Real eps)
| Changes the value of "myEpsGeom" .
Standard_Real | GetEpsGeom () const
| Returns the value of "myEpsGeom" .
void | SetMinTol (const Standard_Real mintol)
| Changes the value of "myMinTol" .
void | SetMaxTol (const Standard_Real maxtol)
| Changes the value of "myMaxTol" .
Standard_EXPORT void | UpdateMinMaxTol ()
| Sets values of "myMinTol" and "myMaxTol" as follows myMaxTol = Max ("read.maxprecision.val", myEpsGeom * myUnitFactor) myMinTol = Precision::Confusion() Remark: This method is automatically invoked each time the values of "myEpsGeom" or "myUnitFactor" are changed .
Standard_Real | GetMinTol () const
| Returns the value of "myMinTol" .
Standard_Real | GetMaxTol () const
| Returns the value of "myMaxTol" .
void | SetModeApprox (const Standard_Boolean mode)
| Changes the value of "myModeApprox" .
Standard_Boolean | GetModeApprox () const
| Returns the value of "myModeApprox" .
void | SetModeTransfer (const Standard_Boolean mode)
| Changes the value of "myModeIsTopo" .
Standard_Boolean | GetModeTransfer () const
| Returns the value of "myModeIsTopo" .
void | SetOptimized (const Standard_Boolean optimized)
| Changes the value of "myContIsOpti" .
Standard_Boolean | GetOptimized () const
| Returns the value of "myContIsOpti" .
Standard_Real | GetUnitFactor () const
| Returns the value of " myUnitFactor" .
void | SetSurfaceCurve (const Standard_Integer ival)
| Changes the value of "mySurfaceCurve" .
Standard_Integer | GetSurfaceCurve () const
| Returns the value of " mySurfaceCurve" 0 = value in file , 2 = kepp 2d and compute 3d 3 = keep 3d and compute 2d .
Standard_EXPORT void | SetModel (const Handle(IGESData_IGESModel)&model)
| Set the value of "myModel" .
Handle_IGESData_IGESModel | GetModel () const
| Returns the value of "myModel" .
void | SetContinuity (const Standard_Integer continuity)
| Changes the value of "myContinuity" if continuity = 0 do nothing else if continuity = 1 try C1 if continuity = 2 try C2 .
Standard_Integer | GetContinuity () const
| Returns the value of "myContinuity" .
void | SetTransferProcess (const Handle(Transfer_TransientProcess)&TP)
| Set the value of "myMsgReg" .
Handle_Transfer_TransientProcess | GetTransferProcess () const
| Returns the value of "myMsgReg" .
Standard_EXPORT TopoDS_Shape | TransferCurveAndSurface (const Handle(IGESData_IGESEntity)&start)
| Returns the result of the transfert of any IGES Curve or Surface Entity. If the transfer has failed, this member return a NullEntity. .
Standard_EXPORT TopoDS_Shape | TransferGeometry (const Handle(IGESData_IGESEntity)&start)
| Returns the result of the transfert the geometry of any IGESEntity. If the transfer has failed, this member return a NullEntity. .
void | SendFail (const Handle(IGESData_IGESEntity)&start, const Message_Msg &amsg)
| Records a new Fail message .
void | SendWarning (const Handle(IGESData_IGESEntity)&start, const Message_Msg &amsg)
| Records a new Warning message .
void | SendMsg (const Handle(IGESData_IGESEntity)&start, const Message_Msg &amsg)
| Records a new Information message from the definition of a Msg (Original+Value) .
Standard_EXPORT Standard_Boolean | HasShapeResult (const Handle(IGESData_IGESEntity)&start) const
| Returns True if start was already treated and has a result in "myMap" else returns False. .
Standard_EXPORT TopoDS_Shape | GetShapeResult (const Handle(IGESData_IGESEntity)&start) const
| Returns the result of the transfer of the IGESEntity "start" contained in "myMap" . (if HasShapeResult is True). .
Standard_EXPORT void | SetShapeResult (const Handle(IGESData_IGESEntity)&start, const TopoDS_Shape &result)
| set in "myMap" the result of the transfer of the IGESEntity "start".
Standard_EXPORT Standard_Integer | NbShapeResult (const Handle(IGESData_IGESEntity)&start) const
| Returns the number of shapes results contained in "myMap" for the IGESEntity start ( type VertexList or EdgeList). .
Standard_EXPORT TopoDS_Shape | GetShapeResult (const Handle(IGESData_IGESEntity)&start, const Standard_Integer num) const
| Returns the numth result of the IGESEntity start (type VertexList or EdgeList) in "myMap". (if NbShapeResult is not null). .
Standard_EXPORT void | AddShapeResult (const Handle(IGESData_IGESEntity)&start, const TopoDS_Shape &result)
| set in "myMap" the result of the transfer of the entity of the IGESEntity start ( type VertexList or EdgeList).
Standard_EXPORT void | SetSurface (const Handle(Geom_Surface)&theSurface)
Standard_EXPORT Handle_Geom_Surface | Surface () const
Standard_EXPORT Standard_Real | GetUVResolution ()

## Private Attributes

Standard_Real | myEps
Standard_Real | myEpsCoeff
Standard_Real | myEpsGeom
Standard_Real | myMinTol
Standard_Real | myMaxTol
Standard_Boolean | myModeIsTopo
Standard_Boolean | myModeApprox
Standard_Boolean | myContIsOpti
Standard_Real | myUnitFactor
Standard_Integer | mySurfaceCurve
Standard_Integer | myContinuity
Handle_Geom_Surface | mySurface
Standard_Real | myUVResolution
Standard_Boolean | myIsResolCom
Handle_IGESData_IGESModel | myModel
Handle_Transfer_TransientProcess | myTP

## Constructor & Destructor Documentation

Standard_EXPORT IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface | ( |  | ) |

Standard_EXPORT IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface | ( | const IGESToBRep_CurveAndSurface & | CS | ) |

Standard_EXPORT IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface | ( | const Standard_Real | eps,
|  | const Standard_Real | epsGeom,
|  | const Standard_Real | epsCoeff,
|  | const Standard_Boolean | mode,
|  | const Standard_Boolean | modeapprox,
|  | const Standard_Boolean | optimized
| ) |

## Member Function Documentation

Standard_EXPORT void IGESToBRep_CurveAndSurface::AddShapeResult | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const TopoDS_Shape & | result
| ) |

Standard_Integer IGESToBRep_CurveAndSurface::GetContinuity | ( |  | ) | const`[inline]`

Standard_Real IGESToBRep_CurveAndSurface::GetEpsCoeff | ( |  | ) | const`[inline]`

Standard_Real IGESToBRep_CurveAndSurface::GetEpsGeom | ( |  | ) | const`[inline]`

Standard_Real IGESToBRep_CurveAndSurface::GetEpsilon | ( |  | ) | const`[inline]`

Standard_Real IGESToBRep_CurveAndSurface::GetMaxTol | ( |  | ) | const`[inline]`

Standard_Real IGESToBRep_CurveAndSurface::GetMinTol | ( |  | ) | const`[inline]`

Standard_Boolean IGESToBRep_CurveAndSurface::GetModeApprox | ( |  | ) | const`[inline]`

Handle_IGESData_IGESModel IGESToBRep_CurveAndSurface::GetModel | ( |  | ) | const

Standard_Boolean IGESToBRep_CurveAndSurface::GetModeTransfer | ( |  | ) | const`[inline]`

Standard_Boolean IGESToBRep_CurveAndSurface::GetOptimized | ( |  | ) | const`[inline]`

Standard_EXPORT TopoDS_Shape IGESToBRep_CurveAndSurface::GetShapeResult | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const Standard_Integer | num
| ) | const

Standard_EXPORT TopoDS_Shape IGESToBRep_CurveAndSurface::GetShapeResult | ( | const Handle(IGESData_IGESEntity)& | start | ) | const

Standard_Integer IGESToBRep_CurveAndSurface::GetSurfaceCurve | ( |  | ) | const`[inline]`

Handle_Transfer_TransientProcess IGESToBRep_CurveAndSurface::GetTransferProcess | ( |  | ) | const

Standard_Real IGESToBRep_CurveAndSurface::GetUnitFactor | ( |  | ) | const`[inline]`

Standard_EXPORT Standard_Real IGESToBRep_CurveAndSurface::GetUVResolution | ( |  | ) |

Standard_EXPORT Standard_Boolean IGESToBRep_CurveAndSurface::HasShapeResult | ( | const Handle(IGESData_IGESEntity)& | start | ) | const

Standard_EXPORT void IGESToBRep_CurveAndSurface::Init | ( |  | ) |

Standard_EXPORT Standard_Integer IGESToBRep_CurveAndSurface::NbShapeResult | ( | const Handle(IGESData_IGESEntity)& | start | ) | const

void IGESToBRep_CurveAndSurface::operator delete | ( | void * | anAddress | ) | `[inline]`

| Reimplemented in IGESToBRep_BasicCurve, IGESToBRep_BasicSurface, IGESToBRep_BRepEntity, IGESToBRep_TopoCurve, and IGESToBRep_TopoSurface.

void* IGESToBRep_CurveAndSurface::operator new | ( | size_t | size | ) | `[inline]`

| Reimplemented in IGESToBRep_BasicCurve, IGESToBRep_BasicSurface, IGESToBRep_BRepEntity, IGESToBRep_TopoCurve, and IGESToBRep_TopoSurface.

void* IGESToBRep_CurveAndSurface::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

| Reimplemented in IGESToBRep_BasicCurve, IGESToBRep_BasicSurface, IGESToBRep_BRepEntity, IGESToBRep_TopoCurve, and IGESToBRep_TopoSurface.

void IGESToBRep_CurveAndSurface::SendFail | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const Message_Msg & | amsg
| ) | `[inline]`

void IGESToBRep_CurveAndSurface::SendMsg | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const Message_Msg & | amsg
| ) | `[inline]`

void IGESToBRep_CurveAndSurface::SendWarning | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const Message_Msg & | amsg
| ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetContinuity | ( | const Standard_Integer | continuity | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetEpsCoeff | ( | const Standard_Real | eps | ) | `[inline]`

Standard_EXPORT void IGESToBRep_CurveAndSurface::SetEpsGeom | ( | const Standard_Real | eps | ) |

void IGESToBRep_CurveAndSurface::SetEpsilon | ( | const Standard_Real | eps | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetMaxTol | ( | const Standard_Real | maxtol | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetMinTol | ( | const Standard_Real | mintol | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetModeApprox | ( | const Standard_Boolean | mode | ) | `[inline]`

Standard_EXPORT void IGESToBRep_CurveAndSurface::SetModel | ( | const Handle(IGESData_IGESModel)& | model | ) |

void IGESToBRep_CurveAndSurface::SetModeTransfer | ( | const Standard_Boolean | mode | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetOptimized | ( | const Standard_Boolean | optimized | ) | `[inline]`

Standard_EXPORT void IGESToBRep_CurveAndSurface::SetShapeResult | ( | const Handle(IGESData_IGESEntity)& | start,
|  | const TopoDS_Shape & | result
| ) |

Standard_EXPORT void IGESToBRep_CurveAndSurface::SetSurface | ( | const Handle(Geom_Surface)& | theSurface | ) |

void IGESToBRep_CurveAndSurface::SetSurfaceCurve | ( | const Standard_Integer | ival | ) | `[inline]`

void IGESToBRep_CurveAndSurface::SetTransferProcess | ( | const Handle(Transfer_TransientProcess)& | TP | ) | `[inline]`

Standard_EXPORT Handle_Geom_Surface IGESToBRep_CurveAndSurface::Surface | ( |  | ) | const

Standard_EXPORT TopoDS_Shape IGESToBRep_CurveAndSurface::TransferCurveAndSurface | ( | const Handle(IGESData_IGESEntity)& | start | ) |

Standard_EXPORT TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry | ( | const Handle(IGESData_IGESEntity)& | start | ) |

Standard_EXPORT void IGESToBRep_CurveAndSurface::UpdateMinMaxTol | ( |  | ) |

## Field Documentation

Standard_Integer IGESToBRep_CurveAndSurface::myContinuity `[private]`

Standard_Boolean IGESToBRep_CurveAndSurface::myContIsOpti `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myEps `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myEpsCoeff `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myEpsGeom `[private]`

Standard_Boolean IGESToBRep_CurveAndSurface::myIsResolCom `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myMaxTol `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myMinTol `[private]`

Standard_Boolean IGESToBRep_CurveAndSurface::myModeApprox `[private]`

Standard_Boolean IGESToBRep_CurveAndSurface::myModeIsTopo `[private]`

Handle_IGESData_IGESModel IGESToBRep_CurveAndSurface::myModel `[private]`

Handle_Geom_Surface IGESToBRep_CurveAndSurface::mySurface `[private]`

Standard_Integer IGESToBRep_CurveAndSurface::mySurfaceCurve `[private]`

Handle_Transfer_TransientProcess IGESToBRep_CurveAndSurface::myTP `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myUnitFactor `[private]`

Standard_Real IGESToBRep_CurveAndSurface::myUVResolution `[private]`

The documentation for this class was generated from the following files:

- IGESToBRep_CurveAndSurface.hxx
- IGESToBRep_CurveAndSurface.lxx