In file ./include/vob/geom/Fillets2.hxx:

struct CircleCircleFillet

A circular fillet edge span, for a circular node.

Documentation

A circular fillet edge span, for a circular node. This is simply a circular arc from the connection to the point where it is tangent to the circular node.

[more]Vec fcenter
Center of the circle of which the arc is taken
[more]float frad
Radius of the arc
[more]Vec dirTang
The direction vector from the center of the node to the point where the two circles are tangent
[more]float dtsign
The sign: calculate cross product of a vector with dirTang, if sign is same as here, then we it is on the same side as the arc
[more]float astart
The start angle of the arc, looking from fcenter
[more]float aend
The end angle of the arc, looking from fcenter
[more]void cutEnd(Vec dir)
For blending, we want to stop the fillet halfway to avoid overdraw and strange shapes while cleaving
[more]bool infillet(Vec dir) const
Whether the given direction vector from the center of the node is inside the fillet.
[more]bool overlaps(const CircleCircleFillet &other) const
Returns true if either of the directions where the circles are tangent is inside the other fillet area.

oVec fcenter
Center of the circle of which the arc is taken

ofloat frad
Radius of the arc

oVec dirTang
The direction vector from the center of the node to the point where the two circles are tangent

ofloat dtsign
The sign: calculate cross product of a vector with dirTang, if sign is same as here, then we it is on the same side as the arc

ofloat astart
The start angle of the arc, looking from fcenter

ofloat aend
The end angle of the arc, looking from fcenter

ovoid cutEnd(Vec dir)
For blending, we want to stop the fillet halfway to avoid overdraw and strange shapes while cleaving

obool infillet(Vec dir) const
Whether the given direction vector from the center of the node is inside the fillet. This does *not* guarantee that point(dir) will be a success: this function includes vectors inside the connection to the fillet but point() naturally does not.

obool overlaps(const CircleCircleFillet &other) const
Returns true if either of the directions where the circles are tangent is inside the other fillet area. This is not *quite* the same as the trivial definition of overlapping: it returns false if the tangent points are past the connections.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.