A toolbox to script and generate axonometric drawing operations.
To enable a maximum amount of thinkering, the following API documentation
covers all public objects of the codebase. For scripting,
the Axonometry, Point and Line
classes and their corresponding methods are sufficient.
Classes
|
Axonometry by intersection setup. |
|
Records all drawing and projection operations to be rendered. |
|
The primary drawing element. |
|
Base class for Axonometry and ReferencePlane. |
|
The atoms of geometry. |
|
Tilted coordinate plane in which to draw, project into and from. |
|
A collection class to apply various graphical operations on a set of lines. |
|
The orthogonal projection of a trihedron. |
Functions
Test if an angle pair are valid axonometry angles. |
|
Import a 3D model as OBJ file. |
Functions#
- is_valid_angle_pair(angles: tuple) bool[source]#
Test if an angle pair are valid axonometry angles.
Check if angles satisfy the following conditions:
not (180 - (alpha + beta) >= 90 and not (alpha == 0 and beta == 0) and not (alpha == 90 and beta == 0) and not (alpha == 0 and beta == 90)
Hint
Currently the angle value 0 is not supported. But one can use a float vlue of .1 to approximate zero.
- mesh_from_obj_file(filepath: str, scale_factor: float = 50.0) compas.datastructures.Mesh[source]#
Import a 3D model as OBJ file.
The returned mesh can be manipulated with the COMPAS tools before beeing added to an axonometry with the function
import_mesh().- Parameters:
- Returns:
COMPAS Mesh object
- Return type: