20 #ifndef GeomAPI_Wire_H_
21 #define GeomAPI_Wire_H_
23 #include "GeomAPI_Shape.h"
37 GEOMAPI_EXPORT
GeomAPI_Wire(
const std::shared_ptr<GeomAPI_Shape>& theShape);
40 GEOMAPI_EXPORT
bool isClosed()
const;
44 GEOMAPI_EXPORT
bool isPolygon(std::list<std::shared_ptr<GeomAPI_Pnt> >& thePoints)
const;
48 GEOMAPI_EXPORT
bool isRectangle(std::list<std::shared_ptr<GeomAPI_Pnt> >& thePoints)
const;
51 GEOMAPI_EXPORT
virtual std::shared_ptr<GeomAPI_Pnt>
middlePoint()
const;
54 typedef std::shared_ptr<GeomAPI_Wire> GeomWirePtr;
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43
Interface to the wire object.
Definition: GeomAPI_Wire.h:31
GEOMAPI_EXPORT bool isPolygon(std::list< std::shared_ptr< GeomAPI_Pnt > > &thePoints) const
Returns true if the wire is a polygon.
Definition: GeomAPI_Wire.cpp:58
GEOMAPI_EXPORT GeomAPI_Wire()
Makes an undefined Wire.
Definition: GeomAPI_Wire.cpp:33
GEOMAPI_EXPORT bool isClosed() const
Returns "closed" status of the wire.
Definition: GeomAPI_Wire.cpp:52
GEOMAPI_EXPORT bool isRectangle(std::list< std::shared_ptr< GeomAPI_Pnt > > &thePoints) const
Returns true if the wire is a rectangle.
Definition: GeomAPI_Wire.cpp:82
virtual GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > middlePoint() const
Return middle point on the wire.
Definition: GeomAPI_Wire.cpp:128