Points

class pyvsim.Primitives.Points[source]

This class is used for representation of 0D elements, i.e. points in the 3D space.

Warning - do not change the self.bounds 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 points on display

connectivity = None

None as default, as points are not connected

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

Toggles between visibility of each point or only their bounding box

This Page