TechDraw::GeometryUtils Class Reference

Encapsulates some useful static methods. More...

#include <Geometry.h>

Classes

struct  ReturnType
 Used by nextGeom() More...
 

Static Public Member Functions

static BaseGeomPtrVector chainGeoms (BaseGeomPtrVector geoms)
 return a vector of BaseGeomPtr's in tail to nose order More...
 
static TopoDS_Edge edgeFromCircle (TechDraw::CirclePtr c)
 
static TopoDS_Edge edgeFromCircleArc (TechDraw::AOCPtr c)
 
static TopoDS_Edge edgeFromGeneric (TechDraw::GenericPtr g)
 
static ReturnType nextGeom (Base::Vector3d atPoint, std::vector< TechDraw::BaseGeomPtr > geoms, std::vector< bool > used, double tolerance)
 Find an unused geom starts or ends at atPoint. More...
 

Detailed Description

Encapsulates some useful static methods.

Member Function Documentation

◆ chainGeoms()

BaseGeomPtrVector GeometryUtils::chainGeoms ( BaseGeomPtrVector  geoms)
static

return a vector of BaseGeomPtr's in tail to nose order

References Base::Console(), Base::ConsoleSingleton::Log(), and nextGeom().

◆ edgeFromCircle()

TopoDS_Edge GeometryUtils::edgeFromCircle ( TechDraw::CirclePtr  c)
static

◆ edgeFromCircleArc()

TopoDS_Edge GeometryUtils::edgeFromCircleArc ( TechDraw::AOCPtr  c)
static

◆ edgeFromGeneric()

◆ nextGeom()

GeometryUtils::ReturnType GeometryUtils::nextGeom ( Base::Vector3d  atPoint,
std::vector< TechDraw::BaseGeomPtr geoms,
std::vector< bool used,
double  tolerance 
)
static

Find an unused geom starts or ends at atPoint.

returns index[1:geoms.size()),reversed [true,false]

References draftutils.utils::tolerance().

Referenced by chainGeoms().


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