alias_api.AlCurvePoint
- class alias_api.AlCurvePoint
Bases:
AlPointInterface to Alias curve points.
A point can be created in the parametric space of any AlCurve. This point can be queried for the curve normals, tangent, position in world coordinate system, arc length, and curvature information. This class contains methods for creating, and moving the curve point.
If the AlCurve is deleted, the curve point created on it is automatically deleted.
- arc_length(self: alias_api.AlCurvePoint) tuple[int, float]
Find the length of the curve on which the point is present.
- Returns
A tuple (status, arg_len), where status [AlStatusCode] - the status code result
Success - the arc length was found InvalidObject - the point is not valid
arc_len [float] - the length of the curve
- Return type
tuple
- attached_to(self: alias_api.AlCurvePoint) alias_api.AlCurveNode
Return the AlCurveNode this AlCurvePoint is associated with.
- copy_wrapper(self: alias_api.AlCurvePoint) alias_api.AlObject
Return an exact duplicate of this AlCurvePoint wrapper.
- create(self: alias_api.AlCurvePoint, curve: alias_api.AlCurve, u: SupportsFloat) int
Create a point on the given curve.
- Parameters
curve (AlCurve) – The curve on which the point is to be created.
u (float) – The curve parameter at which point is to be created.
- Returns
The status code Success - the point was successfully created. AlreadyCreated - object has already been created. Failure - the point could not be created on the curve. InvalidArgument - the curve is not a valid object.
- Return type
- normal1(self: alias_api.AlCurvePoint) tuple[int, float, float, float]
Find the normal vector to the curve at the point.
- Returns
A tuple (status, x, y, z), where status [AlStatusCode] - the status code result
Success - the normal was found InvalidObject - the point is not valid
x [float] - the x coordinate of the normal y [float] - the y coordinate of the normal z [float] - the z coordinate of the normal
- Return type
tuple
- normal2(self: alias_api.AlCurvePoint) tuple[int, float, float, float]
Find the second normal vector to the curve at the point.
- Returns
A tuple (status, x, y, z), where status [AlStatusCode] - the status code result
Success - the normal was found InvalidObject - the point is not valid
x [float] - the x coordinate of the second normal y [float] - the y coordinate of the second normal z [float] - the z coordinate of the second normal
- Return type
tuple
- parameter(self: alias_api.AlCurvePoint) tuple[int, float]
Find the parameter value at which the point is present.
- Returns
A tuple (status, u), where status [AlStatusCode] - the status code result
Success - the parameter was found InvalidObject - the point is not valid
u [float] - the curve parameter where point is present
- Return type
tuple
- radius(self: alias_api.AlCurvePoint) tuple[int, float]
Find the radius of the curve at the point.
- Returns
A tuple (status, radius), where status [AlStatusCode] - the status code result
Success - the radius was found InvalidObject - the point is not valid
radius [float] - the radius of the curve at the point
- Return type
tuple
- set_parameter(self: alias_api.AlCurvePoint, u: SupportsFloat) int
Move the position of a point created on a curve.
- Parameters
u (float) – The parameter on the curve where the point has to be moved.
- Returns
The status code result Success - the point was moved InvalidObject - the point is not valid
- Return type
AlStatuscode
- tangent(self: alias_api.AlCurvePoint) tuple[int, float, float, float]
Find the tangent vector to the curve at the point.
- Returns
A tuple (status, x, y, z), where status [AlStatusCode] - the status code result
Success - the tangent was found InvalidObject - the point is not valid
x [float] - the x coordinate of the tangent y [float] - the y coordinate of the tangent z [float] - the z coordinate of the tangent
- Return type
tuple
- type(self: alias_api.AlCurvePoint) alias_api.AlObjectType
Return the AlCurvePoint type identifier.
- world_position(self: alias_api.AlCurvePoint) tuple[int, float, float, float]
Find the world coordinates of the point.
- Returns
A tuple (status, x, y, z), where status [AlStatusCode] - the status code result
Success - the coordinates was found InvalidObject - the point is not valid
x [float] - the x world coordinate of the point y [float] - the y world coordinate of the point z [float] - the z world coordinate of the point
- Return type
tuple