21 #ifndef __XAO_BREPGEOMETRY_HXX__
22 #define __XAO_BREPGEOMETRY_HXX__
27 #include <TopoDS_Shape.hxx>
34 #pragma warning(disable:4290)
70 virtual const std::string getShapeString();
76 virtual void setShapeString(
const std::string& shape);
82 virtual void writeShapeFile(
const std::string& fileName) ;
88 virtual void readShapeFile(
const std::string& fileName) ;
92 def setShape(
self, shape):
93 if shape is not None and
'GetShapeStream' in dir(shape):
94 self.setShapeString(shape.GetShapeStream())
104 TopoDS_Shape getTopoDS_Shape();
110 void setTopoDS_Shape(
const TopoDS_Shape& shape);
118 void getEdgeVertices(
int edgeIndex,
int& vertexA,
int& vertexB);
125 int countFaceWires(
int faceIndex);
133 std::vector<int> getFaceEdges(
int faceIndex,
int wireIndex);
140 int countSolidShells(
int solidIndex);
148 std::vector<int> getSolidFaces(
int solidIndex,
int shellIndex);
157 void getVertexXYZ(
int vertexIndex,
double& xCoord,
double& yCoord,
double& zCoord)
165 double getEdgeLength(
int index);
172 double getFaceArea(
int index);
179 double getSolidVolume(
int index);
186 int getVertexID(
int index);
193 int getEdgeID(
int index);
200 int getFaceID(
int index);
207 int getSolidID(
int index);
214 void setVertexID(
int index,
int id);
221 void setEdgeID(
int index,
int id);
228 void setFaceID(
int index,
int id);
235 void setSolidID(
int index,
int id);
242 int findVertex(
int id);
249 int findEdge(
int id);
256 int findFace(
int id);
263 int findSolid(
int id);
270 const std::string findVertexName(
int id);
277 const std::string findEdgeName(
int id);
284 const std::string findFaceName(
int id);
291 const std::string findSolidName(
int id);
298 void changeVertexName(
int id,
const std::string& name) ;
305 void changeEdgeName(
int id,
const std::string& name) ;
312 void changeFaceName(
int id,
const std::string& name) ;
319 void changeSolidName(
int id,
const std::string& name) ;
324 TopoDS_Shape getSubShape(
const TopoDS_Shape& mainShape,
const TopAbs_ShapeEnum& shapeType,
int shapeIndex)
326 int countGeometricalElements(
const TopoDS_Shape& shape,
const TopAbs_ShapeEnum& shapeType);
327 std::vector<int> getGeometricalElements(
const TopoDS_Shape& shape,
const TopAbs_ShapeEnum& shapeType,
XAO::Dimension dim);
if(!theListOfShapes.IsEmpty())
Definition: GEOMImpl_ShapeDriver.cxx:131
#define XAO_EXPORT
Definition: XAO.hxx:31
Representation of a BRep Geometry.
Definition: XAO_BrepGeometry.hxx:45
virtual XAO::Format getFormat()
Gets the format of the geometry.
Definition: XAO_BrepGeometry.hxx:64
virtual ~BrepGeometry()
Definition: XAO_BrepGeometry.hxx:58
TopoDS_Shape m_shape
Definition: XAO_BrepGeometry.hxx:332
Generic class to manipulate a list of topologic element.
Definition: XAO_GeometricElement.hxx:112
Base class for geometries.
Definition: XAO_Geometry.hxx:43
Exception for XAO operations.
Definition: XAO_Exception.hxx:34
Definition: BrepGeometryTest.hxx:26
Dimension
Definition: XAO_XaoUtils.hxx:50
Format
Definition: XAO_XaoUtils.hxx:41
@ BREP
Definition: XAO_XaoUtils.hxx:42