Spline

A spline primitive, modelled on the DXF SPLINE entity.

Public Fields

EndTangent
Point3F
Knots
System.Double[]
An array of knot intervals.
StartTangent
Point3F
Not currently used.
Weights
System.Double[]
An array of control point weights.

Properties

CADFile
readonly

CADFile
The name of the layer that contains this primitive.

CanConvertToPolylines
readonly

System.Boolean
 

Closed

System.Boolean
This property is not currently used.

ControlPoints

CamBam.Geom.Point3FArray
An list that contains the control points.

ControlPointTolerance

System.Double
The control point tolerance tolerance. Not currently used.

Degree

System.Int32
1=Linear,2=Quadratic,3=Cubic,etc...

FitPoints

CamBam.Geom.Point3FArray
An list that contains the fit points.

FitTolerance

System.Double
The fit point tolerance tolerance. Not currently used.

Flags

System.Int32
A bit combination of integer flags
Closed: 0x01
Periodic: 0x02
Rational: 0x04
Planar: 0x08
Linear: 0x10

ID

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

KnotTolerance

System.Double
The knot tolerance. Not currently used.

Layer
readonly

Layer
The name of the layer that contains this primitive.

Linear

System.Boolean
This property is not currently used.

Parent

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

Periodic

System.Boolean
This property is not currently used.

Planar

System.Boolean
This property is not currently used.

PrimitiveType
readonly

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

Rational

System.Boolean
This property is not currently used.

Tag

System.String
 

Transform

CamBam.Geom.Matrix4x4F
 

XmlEndTangent

System.String
 

XmlStartTangent

System.String
 

Methods

ApplyTransformation
Boolean ApplyTransformation (Matrix4x4F xm)
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: Transformation matrix.
tolerance: How close the point must be to be considered a hit.
Returns:
ToPolyline
Polyline ToPolyline (Double tolerance)
Update
Void Update ()
Instructs the primitive to refresh any internal data if the the object has changed.