Added a note in mathutils about how line intersect works

getSBEnable was removed and replaced by isSB, docs needed to be updated.
This commit is contained in:
2006-07-05 03:51:32 +00:00
parent de0af9d951
commit cb8fa00a09
2 changed files with 5 additions and 13 deletions

View File

@@ -101,7 +101,9 @@ def QuadNormal(vec1, vec2, vec3, vec4):
def LineIntersect(vec1, vec2, vec3, vec4):
"""
Return a tuple with the points on each line respectively closest to the other (when both lines intersect, both vector hold the same value).
Return a tuple with the points on each line respectively closest to the other
(when both lines intersect, both vector hold the same value).
The lines are evaluated as infinite lines in space, the values returned may not be between the 2 points given for each line.
@type vec1: Vector object.
@param vec1: A 3d vector, one point on the first line.
@type vec2: Vector object.

View File

@@ -598,7 +598,7 @@ class Object:
def getType():
"""
Returns the type of the object in 'Armature', 'Camera', 'Curve', 'Lamp', 'Lattice',
'Mball', 'Mesh', 'Surf', 'Empty', 'Wave' (deprecated) or 'unknown' in exceptional cases.
'MBall', 'Mesh', 'Surf', 'Empty', 'Wave' (deprecated) or 'unknown' in exceptional cases.
@return: The type of object.
I{B{Example:}}
@@ -1311,22 +1311,12 @@ class Object:
@param goal: the Object's SB New DefaultGoal.
"""
def getSBEnable():
def isSB():
"""
Get if the Object's SB is Enabled.
@rtype: int
"""
def setSBEnable(switch):
"""
Enable / Disable SoftBodies.
1: on
0: off
@rtype: PyNone
@type switch: int
@param switch: the Object's SB New Enable Value.
"""
def getSBPostDef():
"""
get SoftBodies PostDef option