CLine Struct Reference

#include <c4d_baseobject.h>

Detailed Description

Holds information about Line object points.

A Line object is created from a spline (think of it as a linear spline).
It does not appear in the editor, but only in the virtual caches: a spline there is converted to a Line object.
For instance think of the Circle spline with a Bend on it. The Circle spline only contains 4 points, so it cannot be bended (or it would look very odd).
So the Circle spline is subdivided and converted into a Line object and then the Line object is bended. Through its subdivision the result looks good.

During the process of subdividing and converting, the information how the Line object was generated is stored.

The LineObject contains for every point the values t and pos:

  • t is the original spline parameter that generated the point (using SplineObject::GetSplinePoint()).
  • pos is the percentage position of the point for the whole spline circumference.

Public Attributes

Float t
 
Float pos
 

Member Data Documentation

◆ t

Float t

The original spline point for the Line.

See also
SplineObject::GetSplinePoint()

◆ pos

Float pos

The percentage position of the point for the whole spline circumference.