class MDynSweptLine

Jump to documentation

Class for evaluating curve segments as lines over time. (OpenMayaFX) (OpenMayaFX.py)

public members:

MDynSweptLine ()
~MDynSweptLine ()
MVector vertex ( int vertexId, double t = 1.0 )
MVector normal ( double x, double y, double z, double t = 1.0 )
MVector tangent ( double t = 1.0 )
double length ( double t = 1.0 )

Documentation

Class for evaluating curve segments as lines over time. (OpenMayaFX) (OpenMayaFX.py)
Description

A MDynSweptLine provides access to a curve segment defined as a line. It can only be accessed with the MFnDynSweptGeometryData class that is provided as an output from the geoConnector node.

The class provides parametric time evaluation for a curve. Time is in the range 0 to 1, where 1 represents the current frame and 0 represents the previous frame. In this way you can get interpolated values of a curve in motion.

Functions

MDynSweptLine:: MDynSweptLine ()

Description

The class constructor.

MDynSweptLine:: ~MDynSweptLine ()

Description

The class destructor.

MVector MDynSweptLine:: vertex ( int vertexId, double t )

Description

Return the vertex requested by id, at the parametric time value.

Arguments

  • vertexId index 0 or 1
  • t time value in the range 1.0 to 0.0
  • t=1.0 is the current frame
  • t=0.0 is the previous frame

Return Value

  • the vertex postion

MVector MDynSweptLine:: normal ( double x, double y, double z, double t )

Description

Given a parametric time specified by 't' and a vector, returns a normalized vector perpendicular to the tangent, and rotated into the plane defined by the tangent and vector argument.

Arguments

  • x x component of a vector
  • y y component of a vector
  • z z component of a vector
  • t time value in the range 1.0 to 0.0
  • t=1.0 is the current frame
  • t=0.0 is the previous frame

Return Value

  • a normalized vector

MVector MDynSweptLine:: tangent ( double t )

Description

Given a parametric time specified by 't', returns normalized tangent of the line.

Arguments

  • t time value in the range 1.0 to 0.0
  • t=1.0 is the current frame
  • t=0.0 is the previous frame

Return Value

  • a normalized vector

double MDynSweptLine:: length ( double t )

Description

Given a parametric time specified by 't', returns the total length of the line.

Arguments

  • t time value in the range 1.0 to 0.0
  • t=1.0 is the current frame
  • t=0.0 is the previous frame

Return Value

  • total line length

This class has no child classes.


Autodesk® Maya® 2008 © 1997-2007 Autodesk, Inc. All rights reserved. doc++ Copyright