Line

class pyvsim.Primitives.Line[source]

This class is used for representation of 1D elements, i.e. lines and curves in the 3D space.

Warning - do not change the self.bounds property value. This is an indication that this class does not take part in ray tracing activities

Methods

clearData()[source]

In the pure implementation of the line, there are no features to be deleted when a geometrical operation is executed

color = None

The color of the line as an RGB vector or an \((N,3)\) vector for color varying lines

points = None

A \((N,3)\) numpy.ndarray representing the points position

rotateImplementation(angle, axis, pivotPoint)[source]

This method is in charge of updating the position of the point cloud (provided it exists) when the Line is rotated.

There is an exception handling because there is the possibility that the line is translated before the points are defined. This is extremely unlikely, but should not stop the program execution.

translateImplementation(vector)[source]

This method is in charge of updating the position of the point cloud (provided it exists) when the Line is translated.

There is an exception handling because there is the possibility that the line is translated before the points are defined. This is extremely unlikely, but should not stop the program execution.

visible = None

Toggle line visibility

width = None

Line plotting width

This Page