OpenLexocad  27.1
Topo::EdgeTool Class Reference

Tools for creating, manipulating and querying Edges. More...

#include <EdgeTool.h>

Static Public Member Functions

static pEdge copy (pConstEdge e)
 
static pEdge makeEdge (const Geom::Pnt &p1, const Geom::Pnt &p2)
 
static pEdge makeEdge (Core::DocObject *curve, double startParam, double endParam)
 
static pEdge makeArcOfCircle (const Geom::Pnt &p1, const Geom::Pnt &pp, const Geom::Pnt &p2)
 
static pEdge makeArcOfCircle (const Geom::Circ &circ, double param1, double param2, bool sameSense=true)
 
static pEdge makeArcOfCircle (const Geom::Circ &circ, const Geom::Pnt &p1, const Geom::Pnt &p2, bool sameSense=true)
 
static bool projectPointOnEdge (const Geom::Pnt &p, pConstEdge edge, Geom::Pnt &nearest, Geom::Dir &refDirection)
 
static bool projectPointOnEdge (const Geom::Pnt &p, pConstEdge edge, double &u)
 
static bool projectPointOnEdge (const Geom::Pnt &p, pConstEdge edge, Base::Double &u)
 
static bool calculateOffsetFromEdgeThruPoint (pConstEdge edge, const Geom::Pnt &p, double &offset, Geom::Dir &refDirection)
 
static bool calculateOffsetFromEdgeThruPoint (pConstEdge edge, const Geom::Pnt &p, Base::Double &offset, Geom::Dir &refDirection)
 
static bool firstParameter (pConstEdge edge, double &u)
 
static bool firstParameter (pConstEdge edge, Base::Double &u)
 
static bool lastParameter (pConstEdge edge, double &u)
 
static bool lastParameter (pConstEdge edge, Base::Double &u)
 
static bool value (pConstEdge edge, double u, Geom::Pnt &p)
 
static bool d0 (pConstEdge edge, double u, Geom::Pnt &p)
 
static bool d1 (pConstEdge edge, double u, Geom::Pnt &p, Geom::Vec &v1)
 
static bool d2 (pConstEdge edge, double u, Geom::Pnt &p, Geom::Vec &v1, Geom::Vec &v2)
 
static bool d3 (pConstEdge edge, double u, Geom::Pnt &p, Geom::Vec &v1, Geom::Vec &v2, Geom::Vec &v3)
 
static bool splitEdge (pConstEdge edge, double u, pEdge &edge1, pEdge &edge2)
 
static bool getGeomCurveType (pConstEdge edge, Geom::CurveType &type)
 
static double getLength (pConstEdge edge)
 
static bool isPointOnEdge (pConstEdge edge, const Geom::Pnt &pnt)
 
static bool isStraight (pConstEdge edge)
 
static bool isCircular (pConstEdge edge)
 
static bool getArcParameters (pConstEdge edge, Geom::Circ &circle, double &startParam, double &endParam)
 
static bool getLineParameters (pConstEdge edge, Geom::Lin &line, double &startParam, double &endParam, double &scale)
 
static Topo::OrientationType getOrientation (pConstCoedge edge)
 
static bool intersects (pConstEdge edge1, pConstEdge edge2, std::vector< Geom::Pnt > &intersections, double tolerance)
 
static pEdge reversed (pConstEdge edge)
 
static Geom::Pnt getCentre (pConstEdge edge)
 
static pShape extrudeEdge (pConstEdge edge, const Geom::Dir &extrudedDirection, double depth)
 
static bool discretizeNonLinearEdge (pConstEdge edge, std::vector< Geom::Pnt > &points, double deflection)
 
static pEdge transformed (pConstEdge base, const Geom::Trsf &t)
 
static bool areTheSameInstance (pConstEdge edge1, pConstEdge edge2)
 
static const void * getInstancePointer (pConstEdge edge)
 
static bool bspline_facet (const std::vector< Geom::Pnt > &pnts, const bool &periodic, std::vector< Geom::Pnt > &faceted_pnts, double tolerance)
 
static pEdge makeClothoidSegment (const Geom::Clothoid2d &clothoid)
 
static bool getClothoidParameters (pConstEdge edge, Geom::Ax2 &ax2, Geom::Clothoid2d &clothoid)
 
static std::pair< std::vector< double >, std::vector< Geom::Pnt > > getKnotsAndControlPointsFromEdge (pConstEdge edge)
 
static pEdge join (const std::vector< pConstEdge > &edges)
 
Interfaces modified for Python Bindings
static ET_ProjectPointOnEdge_Result1 projectPointOnEdge (const Geom::Pnt &p, pConstEdge edge)
 
static ET_ProjectPointOnEdge_Result2 projectPointOnEdge2 (const Geom::Pnt &p, pConstEdge edge)
 
static ET_CalculateOffsetFromEdgeThruPoint_Result calculateOffsetFromEdgeThruPoint (pConstEdge edge, const Geom::Pnt &p)
 
static ET_FirstParameter_Result firstParameter (pConstEdge edge)
 
static ET_LastParameter_Result lastParameter (pConstEdge edge)
 
static ET_Value_Result value (pConstEdge edge, double u)
 
static ET_D0_Result d0 (pConstEdge edge, double u)
 
static ET_D1_Result d1 (pConstEdge edge, double u)
 
static ET_D2_Result d2 (pConstEdge edge, double u)
 
static ET_D3_Result d3 (pConstEdge edge, double u)
 
static ET_SplitEdge_Result splitEdge (pConstEdge edge, double u)
 
static ET_GeomCurveType_Result getGeomCurveType (pConstEdge edge)
 
static ET_ArcParameters_Result getArcParameters (pConstEdge edge)
 
static ET_LineParameters_Result getLineParameters (pConstEdge edge)
 
static ET_Intersects_Result intersects (pConstEdge edge1, pConstEdge edge2, double tolerance)
 
static ET_DiscretizeNonLinearEdge_Result discretizeNonLinearEdge (pConstEdge edge, double deflection)
 
static ET_Bspline_facet_Result bspline_facet (const std::vector< Geom::Pnt > &pnts, bool periodic, double tolerance)
 
static ET_ClothoidParameters_Result getClothoidParameters (pConstEdge edge)
 

Detailed Description

Tools for creating, manipulating and querying Edges.

Member Function Documentation

◆ areTheSameInstance()

static bool Topo::EdgeTool::areTheSameInstance ( pConstEdge  edge1,
pConstEdge  edge2 
)
static

◆ bspline_facet() [1/2]

static bool Topo::EdgeTool::bspline_facet ( const std::vector< Geom::Pnt > &  pnts,
const bool &  periodic,
std::vector< Geom::Pnt > &  faceted_pnts,
double  tolerance 
)
static

◆ bspline_facet() [2/2]

static ET_Bspline_facet_Result Topo::EdgeTool::bspline_facet ( const std::vector< Geom::Pnt > &  pnts,
bool  periodic,
double  tolerance 
)
static

◆ calculateOffsetFromEdgeThruPoint() [1/3]

static bool Topo::EdgeTool::calculateOffsetFromEdgeThruPoint ( pConstEdge  edge,
const Geom::Pnt p,
double &  offset,
Geom::Dir refDirection 
)
static

◆ calculateOffsetFromEdgeThruPoint() [2/3]

static bool Topo::EdgeTool::calculateOffsetFromEdgeThruPoint ( pConstEdge  edge,
const Geom::Pnt p,
Base::Double offset,
Geom::Dir refDirection 
)
static

◆ calculateOffsetFromEdgeThruPoint() [3/3]

static ET_CalculateOffsetFromEdgeThruPoint_Result Topo::EdgeTool::calculateOffsetFromEdgeThruPoint ( pConstEdge  edge,
const Geom::Pnt p 
)
static

◆ copy()

static pEdge Topo::EdgeTool::copy ( pConstEdge  e)
static

◆ d0() [1/2]

static bool Topo::EdgeTool::d0 ( pConstEdge  edge,
double  u,
Geom::Pnt p 
)
static

◆ d0() [2/2]

static ET_D0_Result Topo::EdgeTool::d0 ( pConstEdge  edge,
double  u 
)
static

◆ d1() [1/2]

static bool Topo::EdgeTool::d1 ( pConstEdge  edge,
double  u,
Geom::Pnt p,
Geom::Vec v1 
)
static

◆ d1() [2/2]

static ET_D1_Result Topo::EdgeTool::d1 ( pConstEdge  edge,
double  u 
)
static

◆ d2() [1/2]

static bool Topo::EdgeTool::d2 ( pConstEdge  edge,
double  u,
Geom::Pnt p,
Geom::Vec v1,
Geom::Vec v2 
)
static

◆ d2() [2/2]

static ET_D2_Result Topo::EdgeTool::d2 ( pConstEdge  edge,
double  u 
)
static

◆ d3() [1/2]

static bool Topo::EdgeTool::d3 ( pConstEdge  edge,
double  u,
Geom::Pnt p,
Geom::Vec v1,
Geom::Vec v2,
Geom::Vec v3 
)
static

◆ d3() [2/2]

static ET_D3_Result Topo::EdgeTool::d3 ( pConstEdge  edge,
double  u 
)
static

◆ discretizeNonLinearEdge() [1/2]

static bool Topo::EdgeTool::discretizeNonLinearEdge ( pConstEdge  edge,
std::vector< Geom::Pnt > &  points,
double  deflection 
)
static

◆ discretizeNonLinearEdge() [2/2]

static ET_DiscretizeNonLinearEdge_Result Topo::EdgeTool::discretizeNonLinearEdge ( pConstEdge  edge,
double  deflection 
)
static

◆ extrudeEdge()

static pShape Topo::EdgeTool::extrudeEdge ( pConstEdge  edge,
const Geom::Dir extrudedDirection,
double  depth 
)
static

◆ firstParameter() [1/3]

static bool Topo::EdgeTool::firstParameter ( pConstEdge  edge,
double &  u 
)
static

◆ firstParameter() [2/3]

static bool Topo::EdgeTool::firstParameter ( pConstEdge  edge,
Base::Double u 
)
static

◆ firstParameter() [3/3]

static ET_FirstParameter_Result Topo::EdgeTool::firstParameter ( pConstEdge  edge)
static

◆ getArcParameters() [1/2]

static bool Topo::EdgeTool::getArcParameters ( pConstEdge  edge,
Geom::Circ circle,
double &  startParam,
double &  endParam 
)
static

◆ getArcParameters() [2/2]

static ET_ArcParameters_Result Topo::EdgeTool::getArcParameters ( pConstEdge  edge)
static

◆ getCentre()

static Geom::Pnt Topo::EdgeTool::getCentre ( pConstEdge  edge)
static

◆ getClothoidParameters() [1/2]

static bool Topo::EdgeTool::getClothoidParameters ( pConstEdge  edge,
Geom::Ax2 ax2,
Geom::Clothoid2d clothoid 
)
static

◆ getClothoidParameters() [2/2]

static ET_ClothoidParameters_Result Topo::EdgeTool::getClothoidParameters ( pConstEdge  edge)
static

◆ getGeomCurveType() [1/2]

static bool Topo::EdgeTool::getGeomCurveType ( pConstEdge  edge,
Geom::CurveType type 
)
static

◆ getGeomCurveType() [2/2]

static ET_GeomCurveType_Result Topo::EdgeTool::getGeomCurveType ( pConstEdge  edge)
static

◆ getInstancePointer()

static const void* Topo::EdgeTool::getInstancePointer ( pConstEdge  edge)
static

◆ getKnotsAndControlPointsFromEdge()

static std::pair<std::vector<double>, std::vector<Geom::Pnt> > Topo::EdgeTool::getKnotsAndControlPointsFromEdge ( pConstEdge  edge)
static

◆ getLength()

static double Topo::EdgeTool::getLength ( pConstEdge  edge)
static

◆ getLineParameters() [1/2]

static bool Topo::EdgeTool::getLineParameters ( pConstEdge  edge,
Geom::Lin line,
double &  startParam,
double &  endParam,
double &  scale 
)
static

◆ getLineParameters() [2/2]

static ET_LineParameters_Result Topo::EdgeTool::getLineParameters ( pConstEdge  edge)
static

◆ getOrientation()

static Topo::OrientationType Topo::EdgeTool::getOrientation ( pConstCoedge  edge)
static

◆ intersects() [1/2]

static bool Topo::EdgeTool::intersects ( pConstEdge  edge1,
pConstEdge  edge2,
std::vector< Geom::Pnt > &  intersections,
double  tolerance 
)
static

◆ intersects() [2/2]

static ET_Intersects_Result Topo::EdgeTool::intersects ( pConstEdge  edge1,
pConstEdge  edge2,
double  tolerance 
)
static

◆ isCircular()

static bool Topo::EdgeTool::isCircular ( pConstEdge  edge)
static

◆ isPointOnEdge()

static bool Topo::EdgeTool::isPointOnEdge ( pConstEdge  edge,
const Geom::Pnt pnt 
)
static

◆ isStraight()

static bool Topo::EdgeTool::isStraight ( pConstEdge  edge)
static

◆ join()

static pEdge Topo::EdgeTool::join ( const std::vector< pConstEdge > &  edges)
static

◆ lastParameter() [1/3]

static bool Topo::EdgeTool::lastParameter ( pConstEdge  edge,
double &  u 
)
static

◆ lastParameter() [2/3]

static bool Topo::EdgeTool::lastParameter ( pConstEdge  edge,
Base::Double u 
)
static

◆ lastParameter() [3/3]

static ET_LastParameter_Result Topo::EdgeTool::lastParameter ( pConstEdge  edge)
static

◆ makeArcOfCircle() [1/3]

static pEdge Topo::EdgeTool::makeArcOfCircle ( const Geom::Pnt p1,
const Geom::Pnt pp,
const Geom::Pnt p2 
)
static

◆ makeArcOfCircle() [2/3]

static pEdge Topo::EdgeTool::makeArcOfCircle ( const Geom::Circ circ,
double  param1,
double  param2,
bool  sameSense = true 
)
static

◆ makeArcOfCircle() [3/3]

static pEdge Topo::EdgeTool::makeArcOfCircle ( const Geom::Circ circ,
const Geom::Pnt p1,
const Geom::Pnt p2,
bool  sameSense = true 
)
static

◆ makeClothoidSegment()

static pEdge Topo::EdgeTool::makeClothoidSegment ( const Geom::Clothoid2d clothoid)
static

◆ makeEdge() [1/2]

static pEdge Topo::EdgeTool::makeEdge ( const Geom::Pnt p1,
const Geom::Pnt p2 
)
static

◆ makeEdge() [2/2]

static pEdge Topo::EdgeTool::makeEdge ( Core::DocObject curve,
double  startParam,
double  endParam 
)
static

◆ projectPointOnEdge() [1/4]

static bool Topo::EdgeTool::projectPointOnEdge ( const Geom::Pnt p,
pConstEdge  edge,
Geom::Pnt nearest,
Geom::Dir refDirection 
)
static

◆ projectPointOnEdge() [2/4]

static bool Topo::EdgeTool::projectPointOnEdge ( const Geom::Pnt p,
pConstEdge  edge,
double &  u 
)
static

◆ projectPointOnEdge() [3/4]

static bool Topo::EdgeTool::projectPointOnEdge ( const Geom::Pnt p,
pConstEdge  edge,
Base::Double u 
)
static

◆ projectPointOnEdge() [4/4]

static ET_ProjectPointOnEdge_Result1 Topo::EdgeTool::projectPointOnEdge ( const Geom::Pnt p,
pConstEdge  edge 
)
static

◆ projectPointOnEdge2()

static ET_ProjectPointOnEdge_Result2 Topo::EdgeTool::projectPointOnEdge2 ( const Geom::Pnt p,
pConstEdge  edge 
)
static

◆ reversed()

static pEdge Topo::EdgeTool::reversed ( pConstEdge  edge)
static

◆ splitEdge() [1/2]

static bool Topo::EdgeTool::splitEdge ( pConstEdge  edge,
double  u,
pEdge edge1,
pEdge edge2 
)
static

◆ splitEdge() [2/2]

static ET_SplitEdge_Result Topo::EdgeTool::splitEdge ( pConstEdge  edge,
double  u 
)
static

◆ transformed()

static pEdge Topo::EdgeTool::transformed ( pConstEdge  base,
const Geom::Trsf t 
)
static

◆ value() [1/2]

static bool Topo::EdgeTool::value ( pConstEdge  edge,
double  u,
Geom::Pnt p 
)
static

◆ value() [2/2]

static ET_Value_Result Topo::EdgeTool::value ( pConstEdge  edge,
double  u 
)
static

The documentation for this class was generated from the following file: