Curvy  2.3.0
CGPath Class Reference
+ Inheritance diagram for CGPath:
+ Collaboration diagram for CGPath:

Detailed Description

Path Data (Shape + Direction (Spline Tangents) + Orientation/Up)

Public Attributes

Vector3[] Direction =new Vector3[0]
 
- Public Attributes inherited from CGShape
Bounds Bounds
 
bool Closed
 Whether the base spline is closed or not More...
 
float[] F =new float[0]
 Relative position (0..1) within the length More...
 
float Length
 Length in world units More...
 
float[] Map = new float[0]
 Arbitrary mapped value, usually U More...
 
List< SamplePointsMaterialGroupMaterialGroups =new List<SamplePointsMaterialGroup>()
 Groups/Patches More...
 
Vector3[] Normal = new Vector3[0]
 Normal More...
 
Vector3[] Position =new Vector3[0]
 Shape/Path Position More...
 
bool Seamless
 Whether the Shape/Path is seamless, i.e. Closed==true and the whole length is covered More...
 
float[] SourceF = new float[0]
 Relative position (0..1, NOT TF!) on the source spline (if any) More...
 
bool SourceIsManaged
 Whether the source is managed or not More...
 
- Public Attributes inherited from CGData
string Name
 

Public Member Functions

 CGPath ()
 
 CGPath (CGPath source)
 
override T Clone< T > ()
 
void Interpolate (float f, out Vector3 pos, out Vector3 dir, out Vector3 up)
 
void Interpolate (float f, float angleF, out Vector3 pos, out Vector3 dir, out Vector3 up)
 
Vector3 InterpolateDirection (float f)
 
Vector3 InterpolateUp (float f)
 
override void Recalculate ()
 Recalculate Length and F[] (by measuring a polyline built from all Position points) More...
 
- Public Member Functions inherited from CGShape
 CGShape ()
 
 CGShape (CGShape source)
 
float DistanceToF (float distance)
 Converts absolute (World Units) to relative (F) distance More...
 
float FToDistance (float f)
 Converts relative (F) to absolute distance (World Units) More...
 
int GetFIndex (float f, out float frag)
 Gets the index of a certain F More...
 
Vector3 InterpolatePosition (float f)
 Interpolates Position by F More...
 
void Move (ref float f, ref int direction, float speed, CurvyClamping clamping)
 
void MoveBy (ref float f, ref int direction, float speedDist, CurvyClamping clamping)
 
void RecalculateNormals (List< int >softEdges)
 
- Public Member Functions inherited from CGData
 CGData ()
 
void Touch ()
 

Static Public Member Functions

static void Copy (CGPath dest, CGPath source)
 
- Static Public Member Functions inherited from CGShape
static void Copy (CGShape dest, CGShape source)
 
- Static Public Member Functions inherited from CGData
static implicit operator bool (CGData a)
 

Additional Inherited Members

- Properties inherited from CGShape
override int Count [get]
 Gets the number of sample points More...
 
- Properties inherited from CGData
virtual int Count [get]
 
DateTime Timestamp [get]
 Time of last change More...
 
- Protected Member Functions inherited from CGData
int getGenericFIndex (ref float[] FMapArray, float fValue, out float frag)
 Searches FMapArray and returns the index that covers the fValue as well as the percentage between index and index+1 More...
 

Constructor & Destructor Documentation

CGPath ( )
CGPath ( CGPath  source)

Member Function Documentation

override T Clone< T > ( )
virtual

Reimplemented from CGShape.

Reimplemented in CGVolume.

static void Copy ( CGPath  dest,
CGPath  source 
)
static
void Interpolate ( float  f,
out Vector3  pos,
out Vector3  dir,
out Vector3  up 
)
void Interpolate ( float  f,
float  angleF,
out Vector3  pos,
out Vector3  dir,
out Vector3  up 
)
Vector3 InterpolateDirection ( float  f)
Vector3 InterpolateUp ( float  f)
override void Recalculate ( )
virtual

Recalculate Length and F[] (by measuring a polyline built from all Position points)

Call this after TRS'ing a shape

Reimplemented from CGShape.

Member Data Documentation

Vector3 [] Direction =new Vector3[0]

The documentation for this class was generated from the following file: