Helper class to determine the intersections of a ray with the objects in a scene.
More...
|
tuple | sf_pick_mat = avango.gua.SFMatrix4() |
| Starting matrix of the ray to be analyzed. More...
|
|
tuple | mf_pick_result = avango.gua.MFPickResult() |
| Intersections of the ray with the objects in the scene. More...
|
|
| activated = True |
| Indicates if the intersection computation is activated or not. More...
|
|
Helper class to determine the intersections of a ray with the objects in a scene.
def lib-server.Intersection.Intersection.__init__ |
( |
|
self | ) |
|
def lib-server.Intersection.Intersection.activate |
( |
|
self | ) |
|
Activate the intersection procedure.
def lib-server.Intersection.Intersection.cross |
( |
|
self, |
|
|
|
VEC1, |
|
|
|
VEC2 |
|
) |
| |
Cross prodcut between two vectors.
- Parameters
-
VEC1 | Left vector. |
VEC2 | Right vector. |
def lib-server.Intersection.Intersection.deactivate |
( |
|
self | ) |
|
Deactivate the intersection procedure.
def lib-server.Intersection.Intersection.dot |
( |
|
self, |
|
|
|
VEC1, |
|
|
|
VEC2 |
|
) |
| |
Dot prodcut between two vectors.
- Parameters
-
VEC1 | Left vector. |
VEC2 | Right vector. |
def lib-server.Intersection.Intersection.evaluate |
( |
|
self | ) |
|
def lib-server.Intersection.Intersection.my_constructor |
( |
|
self, |
|
|
|
SCENEGRAPH, |
|
|
|
SF_MAT, |
|
|
|
PICK_LENGTH, |
|
|
|
PICK_DIRECTION |
|
) |
| |
Custom constructor.
- Parameters
-
SCENEGRAPH | The scenegraph where to look for intersections of the ray. |
SF_MAT | Starting matrix of the ray. |
PICK_LENGTH | Length of the ray in meters. |
PICK_DIRECTION | Direction of the ray. |
def lib-server.Intersection.Intersection.set_pick_direction |
( |
|
self, |
|
|
|
PICK_DIRECTION |
|
) |
| |
Sets the pick_direction attribute.
- Parameters
-
PICK_DIRECTION | New pick direction. |
def lib-server.Intersection.Intersection.set_pick_length |
( |
|
self, |
|
|
|
PICK_LENGTH |
|
) |
| |
Sets the pick_length attribute.
- Parameters
-
PICK_LENGTH | New pick length. |
lib-server.Intersection.Intersection.activated = True |
|
static |
Indicates if the intersection computation is activated or not.
In the last case, nothing will be written in mf_pick_result.
lib-server.Intersection.Intersection.mf_pick_result = avango.gua.MFPickResult() |
|
static |
Intersections of the ray with the objects in the scene.
lib-server.Intersection.Intersection.pick_direction |
lib-server.Intersection.Intersection.pick_length |
Length of the ray in meters.
lib-server.Intersection.Intersection.picking_mask |
Picking mask of the intersection process.
lib-server.Intersection.Intersection.picking_options |
Picking options for the intersection process.
lib-server.Intersection.Intersection.ray |
The spatial ray to be analyzed.
lib-server.Intersection.Intersection.SCENEGRAPH |
Reference to the scenegraph.
lib-server.Intersection.Intersection.sf_pick_mat = avango.gua.SFMatrix4() |
|
static |
Starting matrix of the ray to be analyzed.
The documentation for this class was generated from the following file: