#include <geometry.h>
Public Member Functions | |
Span | BlendTwoSpans (Span &sp2, double radius, double maxt) |
Vector2d | GetVector (double fraction) const |
int | Intof (const Span &sp, Point &pInt1, Point &pInt2, double t[4]) const |
bool | isJoinable (const Span &sp) const |
bool | JoinSeparateSpans (Span &sp) |
Point | Mid () const |
Point | MidParam (double param) const |
Point | MidPerim (double d) const |
void | minmax (Box &box, bool start=true) |
void | minmax (Point &pmin, Point &pmax, bool start=true) |
Point | Near (const Point &p) const |
Point | NearOn (const Point &p) const |
Span | Offset (double offset) |
bool | OnSpan (const Point &p) const |
bool | OnSpan (const Point &p, double *t) const |
void | SetProperties (bool returnProperties) |
Span () | |
Span (int spandir, const Point &pn, const Point &pf, const Point &c) | |
int | Split (double tolerance) |
void | SplitMatrix (int num_vectors, Matrix *matrix) |
void | Transform (const Matrix &m, bool setprops=true) |
Public Attributes | |
double | angle |
Box | box |
int | dir |
int | ID |
double | length |
bool | NullSpan |
bool | ok |
Point | p0 |
Point | p1 |
Point | pc |
double | radius |
bool | returnSpanProperties |
Vector2d | ve |
Vector2d | vs |
Friends | |
wostream & | operator<< (wostream &op, Span &span) |
Constructor & Destructor Documentation
◆ Span() [1/2]
geoff_geometry::Span::Span | ( | ) |
◆ Span() [2/2]
References geoff_geometry::Point::ok.
Member Function Documentation
◆ BlendTwoSpans()
◆ GetVector()
Vector2d Span::GetVector | ( | double | fraction | ) | const |
returns the direction vector at point which is 0-1 along span
References dir, MidParam(), p0, p1, and pc.
◆ Intof()
References geoff_geometry::Intof().
Referenced by geoff_geometry::eliminateLoops(), Span::Intersect(), geoff_geometry::Kurve::Intof(), and geoff_geometry::Kurve::OffsetMethod1().
◆ isJoinable()
◆ JoinSeparateSpans()
References dir, geoff_geometry::CLine::Intof(), geoff_geometry::Circle::Intof(), geoff_geometry::Point::ok, p0, p1, SetProperties(), ve, and vs.
◆ Mid()
Point Span::Mid | ( | ) | const |
References geoff_geometry::Mid().
◆ MidParam()
Point Span::MidParam | ( | double | param | ) | const |
returns a point which is 0-1 along span
References MidPerim(), p0, and p1.
Referenced by GetVector().
◆ MidPerim()
Point Span::MidPerim | ( | double | d | ) | const |
returns a point which is 0-d along span
References dir, p0, pc, and vs.
Referenced by MidParam(), and geoff_geometry::Kurve::Part().
◆ minmax() [1/2]
Referenced by geoff_geometry::Kurve::minmax(), and SetProperties().
◆ minmax() [2/2]
References dir, geoff_geometry::MinMax(), p0, p1, pc, radius, geoff_geometry::Point::x, and geoff_geometry::Point::y.
◆ Near()
References dir, geoff_geometry::Point::Dist(), geoff_geometry::Point::Mid(), p0, p1, pc, geoff_geometry::TOLERANCE, and vs.
Referenced by NearOn().
◆ NearOn()
References geoff_geometry::Point::Dist(), Near(), OnSpan(), p0, and p1.
Referenced by geoff_geometry::Kurve::Near().
◆ Offset()
Span Span::Offset | ( | double | offset | ) |
References dir, geoff_geometry::FNEZ(), geoff_geometry::Vector2d::getx(), geoff_geometry::Vector2d::gety(), NullSpan, p0, p1, SetProperties(), ve, vs, geoff_geometry::Point::x, and geoff_geometry::Point::y.
Referenced by geoff_geometry::Kurve::OffsetISOMethod(), and geoff_geometry::Kurve::OffsetMethod1().
◆ OnSpan() [1/2]
Referenced by geoff_geometry::ArcArcIntof(), geoff_geometry::Dist(), NearOn(), and geoff_geometry::OnSpan().
◆ OnSpan() [2/2]
◆ SetProperties()
void Span::SetProperties | ( | bool | returnProperties | ) |
References dir, geoff_geometry::Point::Dist(), geoff_geometry::FAILURE(), geoff_geometry::FNE(), geoff_geometry::getMessage(), geoff_geometry::IncludedAngle(), minmax(), geoff_geometry::Vector2d::normalise(), NullSpan, p0, p1, pc, radius, returnSpanProperties, geoff_geometry::TOLERANCE, ve, and vs.
Referenced by geoff_geometry::DoesIntersInterfere(), geoff_geometry::eliminateLoops(), geoff_geometry::Kurve::Get(), geoff_geometry::Kurve::Intof(), JoinSeparateSpans(), Offset(), Split(), geoff_geometry::Kurve::Split(), and Transform().
◆ Split()
int Span::Split | ( | double | tolerance | ) |
References dir, radius, returnSpanProperties, SetProperties(), and geoff_geometry::Split().
Referenced by geoff_geometry::Kurve::Split().
◆ SplitMatrix()
void Span::SplitMatrix | ( | int | num_vectors, |
Matrix * | matrix | ||
) |
References dir, geoff_geometry::Vector2d::getx(), geoff_geometry::Vector2d::gety(), pc, vs, geoff_geometry::Point::x, and geoff_geometry::Point::y.
Referenced by geoff_geometry::Kurve::Split().
◆ Transform()
References dir, geoff_geometry::FAILURE(), p0, p1, pc, SetProperties(), and geoff_geometry::Point::Transform().
Referenced by geoff_geometry::Kurve::Add(), and geoff_geometry::Kurve::Get().
Friends And Related Function Documentation
◆ operator<<
|
friend |
Member Data Documentation
◆ angle
double geoff_geometry::Span::angle |
Referenced by PathScripts.PathDressupDogbone.Bone::adaptiveLength(), geoff_geometry::Kurve::Area(), PathScripts.PathDressupDogbone.Bone::corner(), PathScripts.PathDressupHoldingTags.Tag::createSolidsAt(), PathScripts.PathDressupDogbone.Bone::distance(), PathScripts.PathDressupRampEntry.ObjectDressup::execute(), PathScripts.PathDressupRampEntry.ObjectDressup::generateRamps(), OnSpan(), and geoff_geometry::Kurve::Perim().
◆ box
Box geoff_geometry::Span::box |
Referenced by geoff_geometry::Intof(), and geoff_geometry::Line::Line().
◆ dir
int geoff_geometry::Span::dir |
Referenced by geoff_geometry::Kurve::Add(), geoff_geometry::Kurve::ChangeEnd(), geoff_geometry::Kurve::ChangeStart(), geoff_geometry::Dist(), geoff_geometry::DoesIntersInterfere(), geoff_geometry::eliminateLoops(), geoff_geometry::Kurve::Get(), GetVector(), geoff_geometry::Intof(), JoinSeparateSpans(), MidPerim(), minmax(), Near(), Offset(), geoff_geometry::Kurve::OffsetMethod1(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::operator<<(), SetProperties(), Split(), geoff_geometry::Kurve::Split(), SplitMatrix(), and Transform().
◆ ID
int geoff_geometry::Span::ID |
◆ length
double geoff_geometry::Span::length |
Referenced by geoff_geometry::Dist(), geoff_geometry::eliminateLoops(), PathScripts.PathStock.StockFromBase::execute(), PathScripts.PathPocketShape.Extension::getSubLink(), PathScripts.PathPocketShape.Extension::getWire(), geoff_geometry::Kurve::Intof(), geoff_geometry::Line::Line(), geoff_geometry::LineLineIntof(), Mod.PartDesign.Scripts.FilletArc.Vector::norm(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::Kurve::Part(), and geoff_geometry::Kurve::Perim().
◆ NullSpan
bool geoff_geometry::Span::NullSpan |
◆ ok
bool geoff_geometry::Span::ok |
◆ p0
Point geoff_geometry::Span::p0 |
Referenced by geoff_geometry::Kurve::Add(), geoff_geometry::Kurve::Area(), geoff_geometry::Kurve::ChangeEnd(), geoff_geometry::Kurve::ChangeStart(), geoff_geometry::CLine::CLine(), geoff_geometry::Dist(), geoff_geometry::DoesIntersInterfere(), geoff_geometry::eliminateLoops(), geoff_geometry::Kurve::Get(), GetVector(), JoinSeparateSpans(), geoff_geometry::Line::Line(), geoff_geometry::LineArcIntof(), geoff_geometry::LineLineIntof(), MidParam(), MidPerim(), minmax(), geoff_geometry::Kurve::minmax(), Near(), NearOn(), Offset(), geoff_geometry::Kurve::OffsetMethod1(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::operator<<(), geoff_geometry::Kurve::Part(), SetProperties(), geoff_geometry::Kurve::Split(), and Transform().
◆ p1
Point geoff_geometry::Span::p1 |
Referenced by geoff_geometry::Kurve::Add(), geoff_geometry::ArcArcIntof(), geoff_geometry::Kurve::Area(), geoff_geometry::Kurve::ChangeEnd(), geoff_geometry::Kurve::ChangeStart(), geoff_geometry::Dist(), geoff_geometry::DoesIntersInterfere(), geoff_geometry::eliminateLoops(), geoff_geometry::Kurve::Get(), GetVector(), geoff_geometry::Kurve::Intof(), draftguitools.gui_trackers.rectangleTracker::isInside(), JoinSeparateSpans(), geoff_geometry::LineArcIntof(), geoff_geometry::LineLineIntof(), MidParam(), minmax(), Near(), NearOn(), Offset(), geoff_geometry::Kurve::OffsetMethod1(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::operator<<(), geoff_geometry::Kurve::Part(), SetProperties(), geoff_geometry::Kurve::Split(), and Transform().
◆ pc
Point geoff_geometry::Span::pc |
Referenced by geoff_geometry::Kurve::Add(), geoff_geometry::ArcArcIntof(), geoff_geometry::Kurve::Area(), geoff_geometry::Kurve::ChangeEnd(), geoff_geometry::Kurve::ChangeStart(), geoff_geometry::Circle::Circle(), geoff_geometry::Dist(), geoff_geometry::DoesIntersInterfere(), geoff_geometry::eliminateLoops(), geoff_geometry::Kurve::Get(), GetVector(), MidPerim(), minmax(), Near(), geoff_geometry::Kurve::OffsetMethod1(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::operator<<(), SetProperties(), geoff_geometry::Kurve::Split(), SplitMatrix(), and Transform().
◆ radius
double geoff_geometry::Span::radius |
Referenced by geoff_geometry::ArcArcIntof(), geoff_geometry::Kurve::Area(), PathScripts.PathPocketBase.ObjectPocket::areaOpAreaParams(), PathScripts.PathProfile.ObjectProfile::areaOpAreaParams(), PathScripts.PathPocketBase.ObjectPocket::areaOpPathParams(), PathScripts.PathAreaOp.ObjectOp::areaOpSetDefaultValues(), PathScripts.PathMillFace.ObjectFace::areaOpShapes(), geoff_geometry::Circle::Circle(), PathScripts.PathHelix.ObjectHelix::circularHoleExecute(), PathScripts.PathDressupHoldingTags.Tag::createSolidsAt(), PathScripts.PathWaterline.ObjectWaterline::deleteOpVariables(), PathScripts.PathSurface.ObjectSurface::deleteOpVariables(), geoff_geometry::Dist(), PathScripts.PathOp.ObjectOp::execute(), PathScripts.PathHelix.ObjectHelix::helix_cut(), minmax(), geoff_geometry::OnSpan(), OnSpan(), geoff_geometry::operator<<(), geoff_geometry::Kurve::Perim(), PathScripts.PathSurfaceSupport.ProcessSelectedFaces::preProcessModel(), SetProperties(), Split(), and geoff_geometry::Kurve::Split().
◆ returnSpanProperties
bool geoff_geometry::Span::returnSpanProperties |
Referenced by geoff_geometry::Circle::Circle(), geoff_geometry::CLine::CLine(), OnSpan(), SetProperties(), and Split().
◆ ve
Vector2d geoff_geometry::Span::ve |
Referenced by JoinSeparateSpans(), Offset(), geoff_geometry::Kurve::OffsetMethod1(), and SetProperties().
◆ vs
Vector2d geoff_geometry::Span::vs |
The documentation for this class was generated from the following files:
- src/Mod/Path/libarea/kurve/geometry.h
- src/Mod/Path/libarea/kurve/Finite.cpp
- src/Mod/Path/libarea/kurve/kurve.cpp