#include <BRepPrimAPI_MakeCone.hxx>
-//=================================================================================================
-GeomAlgoAPI_Cone::GeomAlgoAPI_Cone()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_Cone::GeomAlgoAPI_Cone(std::shared_ptr<GeomAPI_Ax2> theAxis,
const double theBaseRadius,
class GeomAlgoAPI_Cone : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_Cone();
-
/// Creates a cone.
/// \param theAxis The axis of the cone
/// \param theBaseRadius The base radius of the cone
#include <math.h>
-//=================================================================================================
-GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment(const double theRMin1,
class GeomAlgoAPI_ConeSegment : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_ConeSegment();
-
/// Creates a cone segment using standard GDML parameters.
/// \param theRMin1 Cone base inner radius.
/// \param theRMax1 Cone base outer radius.
#include <BRepPrimAPI_MakeCylinder.hxx>
-//=================================================================================================
-GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder(std::shared_ptr<GeomAPI_Ax2> theAxis,
const double theRadius,
class GeomAlgoAPI_Cylinder : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_Cylinder();
-
/// Creates a cylinder.
/// \param theAxis The axis of the cylinder
/// \param theRadius The radius of the cylinder
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
-//=================================================================================================
-GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid(const double theAx,
class GeomAlgoAPI_Ellipsoid : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_Ellipsoid();
-
/// Creates a ellipsoid using standard GDML parameters.
/// \param theAx X dimension of the ellipsoid.
/// \param theBy Y dimension of the ellipsoid.
aFace->setImpl(new TopoDS_Face(aMakeFace.Face()));
return aFace;
}
-
-//==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFaceByFaceAndVertex(
- const std::shared_ptr<GeomAPI_Face> theFace,
- const std::shared_ptr<GeomAPI_Vertex> theVertex)
-{
- gp_Pln aPln = theFace->getPlane()->impl<gp_Pln>();
- gp_Pnt aPnt = theVertex->point()->impl<gp_Pnt>();
-
- std::shared_ptr<GeomAPI_Face> aFace;
- GC_MakePlane aMakePlane(aPln, aPnt);
- if(!aMakePlane.IsDone()) {
- return aFace;
- }
-
- BRepBuilderAPI_MakeFace aMakeFace(aMakePlane.Value()->Pln());
- aFace.reset(new GeomAPI_Face());
- aFace->setImpl(new TopoDS_Face(aMakeFace.Face()));
- return aFace;
-}
const std::shared_ptr<GeomAPI_Vertex> theVertex1,
const std::shared_ptr<GeomAPI_Vertex> theVertex2,
const std::shared_ptr<GeomAPI_Vertex> theVertex3);
-
- /// Creates a planar face parallel to theFace and passing through theVertex.
- static std::shared_ptr<GeomAPI_Face> planarFaceByFaceAndVertex(
- const std::shared_ptr<GeomAPI_Face> theFace,
- const std::shared_ptr<GeomAPI_Vertex> theVertex);
};
#endif
#include <BRepPrimAPI_MakeSphere.hxx>
-//=================================================================================================
-GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere(std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
const double theRadius)
class GeomAlgoAPI_Sphere : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_Sphere();
-
/// Creates a sphere.
/// \param theCenterPoint The center point of the sphere
/// \param theRadius The radius of the sphere
#include <BRepPrimAPI_MakeTorus.hxx>
-//=================================================================================================
-GeomAlgoAPI_Torus::GeomAlgoAPI_Torus()
-{
-}
-
//=================================================================================================
GeomAlgoAPI_Torus::GeomAlgoAPI_Torus(std::shared_ptr<GeomAPI_Ax2> theAxis,
const double theRadius,
class GeomAlgoAPI_Torus : public GeomAlgoAPI_MakeShape
{
public:
- GEOMALGOAPI_EXPORT GeomAlgoAPI_Torus();
-
/// Creates a torus.
/// \param theAxis The axis of the torus
/// \param theRadius The radius of the torus