47 static pEdge makeArcOfCircle(
const Geom::Circ& circ,
double param1,
double param2,
bool sameSense =
true);
54 static bool firstParameter(
pConstEdge edge,
double& u);
56 static bool lastParameter(
pConstEdge edge,
double& u);
68 static bool getArcParameters(
pConstEdge edge,
Geom::Circ& circle,
double& startParam,
double& endParam);
69 static bool getLineParameters(
pConstEdge edge,
Geom::Lin& line,
double& startParam,
double& endParam,
double& scale);
71 static bool intersects(
pConstEdge edge1,
pConstEdge edge2, std::vector<Geom::Pnt>& intersections,
double tolerance);
75 static bool discretizeNonLinearEdge(
pConstEdge edge, std::vector<Geom::Pnt>& points,
double deflection);
78 static const void* getInstancePointer(
pConstEdge edge);
79 static bool bspline_facet(
const std::vector<Geom::Pnt>& pnts,
const bool& periodic, std::vector<Geom::Pnt>& faceted_pnts,
double tolerance);
82 static std::pair<std::vector<double>, std::vector<Geom::Pnt>> getKnotsAndControlPointsFromEdge(
pConstEdge edge);
83 static pEdge join(std::vector<pConstEdge>& edges);
107 static ET_Bspline_facet_Result bspline_facet(
const std::vector<Geom::Pnt>& pnts,
bool periodic,
double tolerance);
113 #ifndef SWIG // INTERFACES BELOW ARE -NOT- PART OF THE LEXOCAD API 114 static void __setDefaultEdgeTool__(
Topo::EdgeTool* tool) { _defaultTool = tool; }
123 virtual pEdge _makeArcOfCircle(
const Geom::Circ& circ,
double param1,
double param2,
bool sameSense);
128 virtual bool _firstParameter(
pConstEdge edge,
double& u);
129 virtual bool _lastParameter(
pConstEdge edge,
double& u);
140 virtual bool _getArcParameters(
pConstEdge edge,
Geom::Circ& circle,
double& startParam,
double& endParam);
141 virtual bool _getLineParameters(
pConstEdge edge,
Geom::Lin& line,
double& startParam,
double& endParam,
double& scale);
143 virtual bool _intersects(
pConstEdge edge1,
pConstEdge edge2, std::vector<Geom::Pnt>& intersections,
double tolerance);
147 virtual bool _discretizeNonLinearEdge(
pConstEdge edge, std::vector<Geom::Pnt>& points,
double deflection);
149 virtual const void* _getInstancePointer(
pConstEdge edge);
150 virtual bool _bspline_facet(
const std::vector<Geom::Pnt>& pnts,
const bool& periodic, std::vector<Geom::Pnt>& faceted_pnts,
double tolerance);
154 virtual std::pair<std::vector<double>, std::vector<Geom::Pnt>> _getKnotsAndControlPointsFromEdge(
pConstEdge edge);
155 virtual pEdge _join(std::vector<pConstEdge>& edges);
Struct holding the return values from EdgeTool::discretizeNonLinearEdge(). Returns ok=true if the ope...
Definition: ToolResults.h:246
Struct holding the return values from EdgeTool::intersects(). Returns ok=true if the operation was su...
Definition: ToolResults.h:232
Struct holding the return values from EdgeTool::firstParameter(). Returns ok=true if the operation wa...
Definition: ToolResults.h:66
#define TOPO_EXPORT
Definition: topo_defines.h:8
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:42
Struct holding the return values from EdgeTool::d2(). Returns ok=true if the operation was successful...
Definition: ToolResults.h:137
std::shared_ptr< Topo::Edge const > pConstEdge
Definition: Shape.h:99
Struct holding the return values from EdgeTool::d1(). Returns ok=true if the operation was successful...
Definition: ToolResults.h:122
Struct holding the return values from EdgeTool::projectPointOnEdge(). Returns ok=true if the operatio...
Definition: ToolResults.h:22
Struct holding the return values from EdgeTool::d0(). Returns ok=true if the operation was successful...
Definition: ToolResults.h:108
Struct holding the return values from EdgeTool::lastParameter(). Returns ok=true if the operation was...
Definition: ToolResults.h:80
Struct holding the return values from EdgeTool::calculateOffsetFromEdgeThruPoint()....
Definition: ToolResults.h:51
Struct holding the return values from EdgeTool::getGeomCurveType(). Returns ok=true if the operation ...
Definition: ToolResults.h:185
Struct holding the return values from EdgeTool::splitEdge(). Returns ok=true if the operation was suc...
Definition: ToolResults.h:170
Struct holding the return values from EdgeTool::projectPointOnEdge2(). Returns ok=true if the operati...
Definition: ToolResults.h:37
Struct holding the return values from EdgeTool::bspline_facet(). Returns ok=true if the operation was...
Definition: ToolResults.h:260
OrientationType
Definition: Shape.h:63
Struct holding the return values from EdgeTool::value(). Returns ok=true if the operation was success...
Definition: ToolResults.h:94
Struct holding the return values from EdgeTool::getArcParameters(). Returns ok=true if the operation ...
Definition: ToolResults.h:199
std::shared_ptr< Topo::Coedge const > pConstCoedge
Definition: Shape.h:100
Defines a non-persistent vector in 3D space.
Definition: Vec.h:45
CurveType
Definition: GeomEnums.h:14
Struct holding the return values from EdgeTool::getLineParameters(). Returns ok=true if the operation...
Definition: ToolResults.h:215
Struct holding the return values from EdgeTool::getClothoidParameters(). Returns ok=true if the opera...
Definition: ToolResults.h:274
Struct holding the return values from EdgeTool::d3(). Returns ok=true if the operation was successful...
Definition: ToolResults.h:153
Definition: DocObject.h:28
std::shared_ptr< Topo::Shape > pShape
Definition: Variant.h:80
Definition: Clothoid2d.h:21
std::shared_ptr< Topo::Edge > pEdge
Definition: Shape.h:84