mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-14 20:51:41 +08:00
39 lines
1.2 KiB
C++
Executable File
39 lines
1.2 KiB
C++
Executable File
#include <TransferBRep_ShapeBinder.ixx>
|
|
#include <TopoDS.hxx>
|
|
|
|
|
|
TransferBRep_ShapeBinder::TransferBRep_ShapeBinder () { }
|
|
|
|
TransferBRep_ShapeBinder::TransferBRep_ShapeBinder (const TopoDS_Shape& shape)
|
|
: TransferBRep_BinderOfShape (shape) { }
|
|
|
|
TopAbs_ShapeEnum TransferBRep_ShapeBinder::ShapeType () const
|
|
{
|
|
if (!HasResult()) return TopAbs_SHAPE;
|
|
return Result().ShapeType();
|
|
}
|
|
|
|
TopoDS_Vertex TransferBRep_ShapeBinder::Vertex() const
|
|
{ return TopoDS::Vertex(Result()); }
|
|
|
|
TopoDS_Edge TransferBRep_ShapeBinder::Edge() const
|
|
{ return TopoDS::Edge(Result()); }
|
|
|
|
TopoDS_Wire TransferBRep_ShapeBinder::Wire() const
|
|
{ return TopoDS::Wire(Result()); }
|
|
|
|
TopoDS_Face TransferBRep_ShapeBinder::Face() const
|
|
{ return TopoDS::Face(Result()); }
|
|
|
|
TopoDS_Shell TransferBRep_ShapeBinder::Shell() const
|
|
{ return TopoDS::Shell(Result()); }
|
|
|
|
TopoDS_Solid TransferBRep_ShapeBinder::Solid() const
|
|
{ return TopoDS::Solid(Result()); }
|
|
|
|
TopoDS_CompSolid TransferBRep_ShapeBinder::CompSolid() const
|
|
{ return TopoDS::CompSolid(Result()); }
|
|
|
|
TopoDS_Compound TransferBRep_ShapeBinder::Compound() const
|
|
{ return TopoDS::Compound(Result()); }
|