Arc

A circular arc.

Properties

CADFile
readonly

CADFile
The name of the layer that contains this primitive.

CanConvertToPolylines
readonly

System.Boolean
 

CenterPoint

System.String
A text representation of the center of the arc. Used for serialisation.

ID

System.Int32
This is a unique ID used to select objects within scripts.

Layer
readonly

Layer
The name of the layer that contains this primitive.

Parent

System.Object
This primitive's parent object. This may be a GOBLayer.

Point

Point3F
The center point of the arc.

PrimitiveType
readonly

System.String
A string representation of this primitive's type

Radius

System.Double
The radius of the arc.

Start

System.Double
The starting angle of the arc (in degrees)

Sweep

System.Double
The sweep angle of the arc (in degrees).
If positive then CCW, If negative then CW.

Tag

System.String
 

Transform

CamBam.Geom.Matrix4x4F
 

Methods

ApplyTransformation
Boolean ApplyTransformation (Matrix4x4F xm)
Multiply the points in the object by a transformation matrix.
Clone
Entity Clone ()
CloneFrom
Void CloneFrom (Entity src)
ConvertToPolylines
Polyline[] ConvertToPolylines (Boolean apply_transformations)
GetExtents
Void GetExtents (PointF& min, PointF& max)
Find the extrema points of this primitive.
Parameters:
min: A point that will receive the minimum coordinates.
max: A point that will receive the maximum coordinates.
GetExtrema
Void GetExtrema (Point3F& min, Point3F& max)
Find the extrema points of this primitive.
Parameters:
min: A point that will receive the minimum coordinates.
max: A point that will receive the maximum coordinates.
GetScreenExtents
Void GetScreenExtents (PointF& min, PointF& max, Matrix4x4F xm)
Paint
Void Paint (Display3D d3d)
PointIntersect
Boolean PointIntersect (Point2F p, Matrix4x4F xm, Double tolerance)
Returns true if a point will intersect part of the primitive. Used for mouse hit testing.
Parameters:
p: The test point.
xm: The transformation matrix to apply before testing.
tolerance: How close the point must be to be considered a hit.
Returns:
ToPolyline
Polyline ToPolyline ()
Converts this primitive to a GOBPolyLine primitive.
Returns: A polyline primitive.
Update
Void Update ()
Instructs the primitive to refresh any internal data if the the object has changed.