v_sim.PlaneClass

Fields

Name

Type

Access

Description

parent

GObject.ObjectClass

r

the parent.

Methods

class

getOrderedIntersections (nVisuPlanes, listOfVisuPlanes, pointA, pointB, inter, index)

Details

class v_sim.PlaneClass

An opaque structure.

classmethod getOrderedIntersections(nVisuPlanes, listOfVisuPlanes, pointA, pointB, inter, index)
Parameters:
  • nVisuPlanes (int) – the number of planes (must be consistent with the number of planes in listOfVisuPlanes!)

  • listOfVisuPlanes (v_sim.Plane) – an array of v_sim.Plane, None terminated ;

  • pointA (float) – three cartesian coordinates.

  • pointB (float) – three cartesian coordinates.

  • inter (float) – a pointer to the location to store the intersection points. Supposing you know the number of intersection points !

  • index (int) – a pointer to the location to store the indices of ordering of the planes.

Returns:

True if the intersections are found.

Return type:

bool

Compute the location of the intersection points of segment AB with list of planes listOfVisuPlanes. If there are several intersections, they are ordered by the proximity to point A.