mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
57 lines
1.6 KiB
ReStructuredText
57 lines
1.6 KiB
ReStructuredText
####################
|
|
Direct API Reference
|
|
####################
|
|
|
|
The Direct API is an interface layer between the primary user interface API
|
|
(the Builders) and the OpenCascade (OCCT) API. This API is based on the CadQuery
|
|
Direct API (thank you to all of the CadQuery contributors that made this possible)
|
|
with the following major changes:
|
|
|
|
* PEP8 compliance
|
|
* New Axis class
|
|
* New ShapeList class enabling sorting and filtering of shape objects
|
|
* Literal strings replaced with Enums
|
|
|
|
.. py:module:: direct_api
|
|
|
|
The class inheritance diagram for the direct api is shown below. Note that the ``Mixin1D``
|
|
and ``Mixin3D`` classes add supplementary functionality specific to 1D
|
|
(``Edge`` and ``Wire``) and 3D (``Compound`` and ``Solid``) objects respectively.
|
|
Note that a ``Compound`` may be contain only 1D, 2D (``Face``) or 3D objects.
|
|
|
|
.. inheritance-diagram:: direct_api
|
|
:parts: 1
|
|
|
|
..
|
|
.. image:: direct_api_classes.svg
|
|
|
|
*****************
|
|
Geometric Objects
|
|
*****************
|
|
The geometric classes defined by build123d are defined below. This parameters to the
|
|
CAD objects described in the following section are frequently of these types.
|
|
|
|
.. autoclass:: Axis
|
|
.. autoclass:: Location
|
|
.. autoclass:: Matrix
|
|
.. autoclass:: Plane
|
|
.. autoclass:: Rotation
|
|
.. autoclass:: Vector
|
|
.. autoclass:: Vertex
|
|
|
|
***********
|
|
CAD Objects
|
|
***********
|
|
The CAD object classes defined by build123d are defined below.
|
|
|
|
.. autoclass:: BoundBox
|
|
.. autoclass:: Compound
|
|
.. autoclass:: Edge
|
|
.. autoclass:: Face
|
|
.. autoclass:: Mixin1D
|
|
.. autoclass:: Mixin3D
|
|
.. autoclass:: Shape
|
|
.. autoclass:: ShapeList
|
|
.. autoclass:: Shell
|
|
.. autoclass:: Solid
|
|
.. autoclass:: Wire
|