API Reference > FacetModeler Namespace > Classes > Segment2D Class
Segment2D Class
FacetModeler__Segment2D
Syntax
C++
class Segment2D;

FMSegment2D.h

Represents 2D Segment objects.

Segment2D is a convex 2D curve given by two points and a bulge value. If the two points coincide, the segment has the estCoincident type. If bulge==0, the segment is a straight line segment; otherwise it is a circular arc, and bulge=tan(Angle/4).

 
Name 
Description 
 
Destructor. 
 
This is the overview for the Segment2D constructor overload. 
 
Name 
Description 
 
Adds extents of this segment (extended by dTol) to the given extents.
 
 
Gets the signed included angle of the arc segment.
 
 
Gets the center of the arc.
 
 
Gets the radius of the arc.
 
 
Gets the start angle of the arc (direction from center to startPt).
 
 
Gets the bulge value of the segment.
 
 
Gets the deviation value of the segment.
 
 
Calculates the distance between the start and end point.
 
 
Gets the end point of the segment as OdGePoint2d.
 
 
Gets the arc center point, radius and angles.
 
 
Gets the arc segment corresponding to this segment.
 
 
Gets the arc radius and center point.
 
 
Gets the direction vector of the segment as OdGeVector2d.
 
 
Gets the line segment corresponding to this segment.
 
 
Gets the parallel segment.
 
 
Gets the point with the specified parameter.
 
 
Returns the subsegment with two specified parameters.
 
 
Gets the tangent vector at the specified parameter.
 
 
Gets the segment implementation class of this object.
 
 
Gets the signed area of a contour bounded by this segment and two lines connecting ptOrigin with ends of this segment.
 
 
This is the overview for the intersect method overload. 
 
Gets the number of intersections with the specified line.
 
 
Gets the number of different intersection points of the segment (including end points with minimal Y) with a ray, starting at ptTest and going in the X direction.
 
 
Gets the ecfExplodedArc flag value.
 
 
Gets the ecfHidden flag value.
 
 
isOn 
Checks whether the point lies within a tolerance on the segment.
 
 
Returns the segment length.
  • details Calculates the segment length.

 
 
Gets metadata.
 
 
Calculates the nearest parameter to the specified point.
 
 
Gets the orientation of the segment.
 
 
Gets internal flags (orientation, visibility etc.).
 
 
Inverts the segment so it is in the opposite direction.
 
 
set 
This is the overview for the set method overload. 
 
Sets or clears the ecfExplodedArc flag.
 
 
Sets or clears the ecfHidden flag.
 
 
Sets metadata.
 
 
Sets the orientation of the segment.
 
 
Sets internal flags (orientation, visibility etc.).
 
 
Shifts the segment in the direction specified by the angle and distance.
 
 
Gets the start point of the segment as OdGePoint2d.
 
 
Transforms the segment using the specified matrix.
 
 
type 
Gets the segment type of this object.
 
 
Name 
Description 
 
= 
This is the overview for the = operator overload. 
Copyright © 2002-2020. Open Design Alliance. All rights reserved.