Plane

class pyvsim.Primitives.Plane(dimension=array([0, 1, 1]), fastInit=False)[source]

This is a convenience class that inherits from Part and represents a rectangle. There are also convenience methods to make coordinate transformation.

To navigate in the plane, one can use the following coordinate system: \(\left[u,v\right]\) , where \(-1 <= u,v <=1\)

As a default, the \(\vec{x}\) vector is the normal for the triangles.

The point numbering convention and the axis alignment is shown in the figure below:

images/plane_points.png

This class can represent only rectangles, so that most of its methods are greatly simplified. If you need to represent a parallelogram, you would have to implement your own class.

Methods

dimension[source]

\((x,y,z)\) dimensions of the plane. \(x=0\) as plane has no thickness

parametricToPhysical(coordinates)[source]

Transforms a 2-component vector in the range -1..1 in sensor coordinates \([u,v] \rarrow [x,y,z]\) (global reference frame)

Vectorization for this method is implemented.

physicalToParametric(coords)[source]

Transforms a 3-component coordinates vector to a 2-component vector which value falls in the range -1..1 in sensor coordinates \([x,y,z] \rarrow [u,v]\)

Vectorization for this method is implemented.

This Page