Module gengeo :: Class LineSet
[hide private]
[frames] | no frames]

Class LineSet

 object --+    
          |    
??.instance --+
              |
             LineSet

A collection of line segments

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__reduce__(...)
helper for pickle
 
addSegment(...)
Adds a triangle by specifying corner coordinates
Vector3
getMaxPoint(...)
Returns maximum corner of the line set bounding box
Vector3
getMinPoint(...)
Returns minimum corner of the line set bounding box
int
isCrossing(...)
Checks if the line between two specified points crosses a line.

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 104
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

addSegment(...)

 

Adds a triangle by specifying corner coordinates

Parameters:
  • Point1 (Vector3) - location of first point of the line segment
  • Point2 (Vector3) - location of second point of the line segment
  • tag (int) - the tag to assign to the segment

isCrossing(...)

 

Checks if the line between two specified points crosses a line. If so, the segment tag is returned; if not, -1.

Parameters:
  • Point1 (Vector3) - location of first corner of the triangle
  • Point2 (Vector3) - location of second corner of the triangle
Returns: int