#include <Tools.h>
Public Member Functions | |
| Handle (Geom_Surface) makeSurface(const TColStd_ListOfTransient &theBoundaries | |
Static Public Member Functions | |
| static void | applyTransformationOnNormals (const TopLoc_Location &loc, std::vector< gp_Vec > &normals) |
| applyTransformationOnNormals Apply the transformation to the vectors More... | |
| static TopLoc_Location | fromPlacement (const Base::Placement &) |
| fromPlacement Converts a placement into a TopLoc_Location More... | |
| static void | getNormal (const Handle(Geom_Surface)&surf, double u, double v, const Standard_Real tol, gp_Dir &dir, Standard_Boolean &done) |
| getNormal Returns the normal at the given parameters on the surface and the state of the calculation More... | |
| static void | getNormal (const TopoDS_Face &face, double u, double v, const Standard_Real tol, gp_Dir &dir, Standard_Boolean &done) |
| getNormal Returns the normal at the given parameters on the face and the state of the calculation. The orientation is taken into account More... | |
| static void | getPointNormals (const std::vector< gp_Pnt > &points, const std::vector< Poly_Triangle > &facets, std::vector< gp_Vec > &vertexnormals) |
| getPointNormals Calculate the point normals of the given triangulation. More... | |
| static void | getPointNormals (const std::vector< gp_Pnt > &points, const TopoDS_Face &face, std::vector< gp_Vec > &vertexnormals) |
| getPointNormals Computes the more accurate surface normals for the points. If the calculation for a point fails then the precomputed point normal of the triangulation is used. More... | |
| static void | getPointNormals (const TopoDS_Face &face, Handle(Poly_Triangulation) aPoly, std::vector< gp_Vec > &normals) |
| getPointNormals Computes the exact surface normals for the points by using the UV coordinates of the mesh vertexes. More... | |
| static void | getPointNormals (const TopoDS_Face &face, Handle(Poly_Triangulation) aPoly, TColgp_Array1OfDir &normals) |
| getPointNormals Computes the exact surface normals for the points by using the UV coordinates of the mesh vertexes. More... | |
| static bool | getPolygon3D (const TopoDS_Edge &edge, std::vector< gp_Pnt > &points) |
| getPolygon3D More... | |
| static bool | getPolygonOnTriangulation (const TopoDS_Edge &edge, const TopoDS_Face &face, std::vector< gp_Pnt > &points) |
| getPolygonOnTriangulation Get the polygon of edge. More... | |
| static bool | getTriangulation (const TopoDS_Face &face, std::vector< gp_Pnt > &points, std::vector< Poly_Triangle > &facets) |
| getTriangulation The indexes of the triangles are adjusted to the points vector. More... | |
| static | Handle (Poly_Polygon3D) polygonOfEdge(const TopoDS_Edge &edge |
| polygonOfEdge Returns the polygon of the edge of the tessellated shape. In case the edge has infinite length the polygon of a limited parameter range is computed. More... | |
| static | Handle (Poly_Triangulation) triangulationOfFace(const TopoDS_Face &face) |
| triangulationOfInfinite Returns the triangulation of the face of the tessellated shape. In case the face has infinite lengths the triangulation of a limited parameter range is computed. More... | |
Public Attributes | |
| static TopLoc_Location & | loc |
| const Standard_Real const Standard_Integer const Standard_Integer const Standard_Integer | theMaxDeg |
| const Standard_Real const Standard_Integer const Standard_Integer | theNbIter |
| const Standard_Real const Standard_Integer | theNbPnts |
| const Standard_Real | theTol |
|
static |
applyTransformationOnNormals Apply the transformation to the vectors
| loc | |
| normals |
Referenced by PartDesignGui::ViewProviderAddSub::updateAddSubShapeIndicator().
|
static |
fromPlacement Converts a placement into a TopLoc_Location
References Base::Placement::getPosition(), Base::Placement::getRotation(), and Base::Rotation::getValue().
|
static |
getNormal Returns the normal at the given parameters on the surface and the state of the calculation
| surf | |
| u | |
| v | |
| tol | |
| dir | |
| done |
References draftgeoutils.general::v1().
Referenced by Part::GeomSurface::normal().
|
static |
getNormal Returns the normal at the given parameters on the face and the state of the calculation. The orientation is taken into account
| face | |
| u | |
| v | |
| tol | |
| dir | |
| done |
|
static |
getPointNormals Calculate the point normals of the given triangulation.
| points | |
| facets | |
| normals |
References draftgeoutils.general::v1().
Referenced by PartDesignGui::ViewProviderAddSub::updateAddSubShapeIndicator(), PartGui::ViewProviderPartExt::updateVisual(), Raytracing::LuxTools::writeShape(), Raytracing::PovTools::writeShape(), and Raytracing::PovTools::writeShapeCSV().
|
static |
getPointNormals Computes the more accurate surface normals for the points. If the calculation for a point fails then the precomputed point normal of the triangulation is used.
| points | |
| face | |
| vertexnormals |
|
static |
getPointNormals Computes the exact surface normals for the points by using the UV coordinates of the mesh vertexes.
| face | |
| aPoly | |
| vertexnormals |
|
static |
getPointNormals Computes the exact surface normals for the points by using the UV coordinates of the mesh vertexes.
| face | |
| aPoly | |
| vertexnormals |
References draftgeoutils.general::v1().
|
static |
getPolygon3D
| edge | |
| points |
Referenced by Part::TopoShape::exportLineSet(), and Part::TopoShape::getLinesFromSubElement().
|
static |
getPolygonOnTriangulation Get the polygon of edge.
| edge | |
| face | |
| points |
Referenced by Part::TopoShape::exportLineSet(), and Part::TopoShape::getLinesFromSubElement().
|
static |
getTriangulation The indexes of the triangles are adjusted to the points vector.
| face | |
| points | |
| facets |
Referenced by Part::TopoShape::exportFaceSet(), Part::TopoShape::getDomains(), PartDesignGui::ViewProviderAddSub::updateAddSubShapeIndicator(), Raytracing::LuxTools::writeShape(), Raytracing::PovTools::writeShape(), and Raytracing::PovTools::writeShapeCSV().
| Part::Tools::Handle | ( | Geom_Surface | ) | const & |
|
static |
polygonOfEdge Returns the polygon of the edge of the tessellated shape. In case the edge has infinite length the polygon of a limited parameter range is computed.
| edge | |
| loc |
|
static |
triangulationOfInfinite Returns the triangulation of the face of the tessellated shape. In case the face has infinite lengths the triangulation of a limited parameter range is computed.
| edge | |
| loc |
| TopLoc_Location& Part::Tools::loc |
| const Standard_Real const Standard_Integer const Standard_Integer const Standard_Integer Part::Tools::theMaxDeg |
| const Standard_Real const Standard_Integer const Standard_Integer Part::Tools::theNbIter |
| const Standard_Real const Standard_Integer Part::Tools::theNbPnts |
| const Standard_Real Part::Tools::theTol |