The Blender geometry module
Returns the area size of the 2D or 3D triangle defined.
Parameters: |
|
---|---|
Return type: | float |
Return a transformed point, the transformation is defined by 2 triangles.
Parameters: |
|
---|---|
Returns: | The transformed point |
Return type: |
Returns the normal of the 3D tri or quad.
Parameters: | boxes (list) – list of boxes, each box is a list where the first 4 items are [x, y, width, height, ...] other items are ignored. |
---|---|
Returns: | the width and height of the packed bounding box |
Return type: | tuple, pair of floats |
Interpolate a bezier spline segment.
Parameters: |
|
---|---|
Returns: | The interpolated points |
Return type: | list of mathutils.Vector‘s |
Returns a tuple with the points on each line respectively closest to the other.
Parameters: |
|
---|---|
Return type: | tuple of mathutils.Vector‘s |
Takes 2 lines (as 4 vectors) and returns a vector for their point of intersection or None.
Parameters: |
|
---|---|
Returns: | The point of intersection or None when not found |
Return type: | mathutils.Vector or None |
Takes 2 lines (as 4 vectors) and returns a vector for their point of intersection or None.
Parameters: |
|
---|---|
Returns: | The point of intersection or None when not found |
Return type: | mathutils.Vector or None |
Takes a point and a line and returns a tuple with the closest point on the line and its distance from the first point of the line as a percentage of the length of the line.
Parameters: |
|
---|---|
Return type: | (mathutils.Vector, float) |
Takes 5 vectors (using only the x and y coordinates): one is the point and the next 4 define the quad, only the x and y are used from the vectors. Returns 1 if the point is within the quad, otherwise 0.
Parameters: |
|
---|---|
Return type: | int |
Takes 4 vectors (using only the x and y coordinates): one is the point and the next 3 define the triangle. Returns 1 if the point is within the triangle, otherwise 0.
Parameters: |
|
---|---|
Return type: | int |
Returns the intersection between a ray and a triangle, if possible, returns None otherwise.
Parameters: |
|
---|---|
Returns: | The point of intersection or None if no intersection is found |
Return type: | mathutils.Vector or None |
Returns the normal of the 3D tri or quad.
Parameters: |
|
---|---|
Return type: |
Takes a list of polylines (each point a vector) and returns the point indices for a polyline filled with triangles.
Parameters: | veclist_list – list of polylines |
---|---|
Return type: | list |