--- /dev/null
+Boolean
+=======
+
+Create Boolean
+--------------
+
+.. autofunction:: model.addAddition
+.. autofunction:: model.addSubtraction
+.. autofunction:: model.addIntersection
+
+Boolean object
+--------------
+
+.. autoclass:: model.features.boolean.Boolean
+ :members:
--- /dev/null
+Connection
+----------
+
+This feature is only for SALOME.
+
+Exprot to GEOM
+..............
+
+.. autofunction:: model.exportToGEOM
--- /dev/null
+Construction
+============
+
+Create construction features.
+
+Create a point
+--------------
+
+.. autofunction:: model.addPoint
+
+Point object
+............
+
+.. autoclass:: model.construction.point.Point
+ :members:
+
+Create an axis
+--------------
+
+.. autofunction:: model.addAxis
+
+Axis object
+...........
+
+.. autoclass:: model.construction.axis.Axis
+ :members:
+
+Create a plane
+--------------
+
+.. autofunction:: model.addPlane
+
+Plane object
+............
+
+.. autoclass:: model.construction.plane.Plane
+ :members:
--- /dev/null
+Exchange
+========
+
+Export/import features.
+
+Import objects from a file
+--------------------------
+
+.. autofunction:: model.addImport
+
+Import object
+.............
+
+.. autoclass:: model.exchange.exchange.Import
+ :members:
+
+Export objects to a file
+------------------------
+
+.. autofunction:: model.exportToFile
+
+Export object
+.............
+
+.. autoclass:: model.exchange.exchange.Export
+ :members:
Extrusion
----------
+=========
.. testsetup::
>>> # Modification of the extrusion
>>> extrusion.setSize(20)
-All the ways to create an extrusion and the data access and modification methods
+All the ways to create an extrusion and the data access and modification methods
of the extrusion are documented below
Create an extrusion
-...................
-
-.. autofunction:: model.features.extrusion.addExtrusion
+-------------------
+
+.. autofunction:: model.addExtrusion
Extrusion object
................
.. autoclass:: model.features.extrusion.Extrusion
:members:
+
+Create an Extrusion Bolean
+--------------------------
+
+.. autofunction:: model.addExtrusionCut
+.. autofunction:: model.addExtrusionFuse
+
+Extrusion Boolean object
+........................
+
+.. autoclass:: model.features.extrusion_boolean.ExtrusionBoolean
+ :members:
+
+Create an Extrusion Sketch
+--------------------------
+
+.. autofunction:: model.addExtrusionSketch
+
+Extrusion Sketch object
+.......................
+
+.. autoclass:: model.features.extrusion_sketch.ExtrusionSketch
+ :members:
--- /dev/null
+Group
+=====
+
+Create a group
+--------------
+
+.. autofunction:: model.addGroup
+
+Group object
+............
+
+.. autoclass:: model.features.group.Group
+ :members:
* a "parametric" API, which is very close to what is done
in the graphical interface and allows you to recalculate a model
- when a parameter is changed
+ when a parameter is changed
Parametric API
--------------
........
This API provides functions for creating the features listed below.
-These functions return an interface to the feature that allow
+These functions return an interface to the feature that allow
to modify the feature and retrieve data from it.
.. toctree::
:maxdepth: 1
sketcher
- extrusion
+ connection
+ construction
+ exchange
+ boolean
+ partition
+ extrusion
+ revolution
+ placement
+ rotation
+ translation
+ group
+
+ parameter
+ partset
Indices and tables
==================
--- /dev/null
+.. py:module:: model
+
+Parametric Geometry API
+***********************
+
+.. automodule:: model
+ :members:
+ :special-members:
+
+Common Modules
+==============
+
+This modules are used by other submodules of Parametric Geometry API.
+
+roots
+-----
+
+.. automodule:: model.roots
+ :members:
+ :special-members:
+
+services
+--------
+
+.. automodule:: model.services
+ :members:
+ :special-members:
+
+tools
+-----
+
+.. automodule:: model.tools
+ :members:
+ :special-members:
+
+errors
+------
+
+.. automodule:: model.errors
+ :members:
+ :special-members:
+
+Modules fo Plugins
+==================
+
+connection
+----------
+
+.. automodule:: model.connection
+ :members:
+ :special-members:
+
+.. autofunction:: model.connection.connection.exportToGEOM
+
+construction
+------------
+
+.. automodule:: model.construction
+ :members:
+ :special-members:
+
+exchange
+--------
+
+.. automodule:: model.exchange
+ :members:
+ :special-members:
+
+features
+--------
+
+.. automodule:: model.features
+ :members:
+ :special-members:
+
+parameter
+.........
+
+.. automodule:: model.parameter
+ :members:
+ :special-members:
+
+partset
+-------
+
+.. automodule:: model.partset
+ :members:
+ :special-members:
+
+sketcher
+--------
+
+.. automodule:: model.sketcher
+ :members:
+ :special-members:
+
+.. toctree::
+ :maxdepth: 1
+
+ sketcher
+
--- /dev/null
+Parameter
+=========
+
+Create a parameter
+------------------
+
+.. autofunction:: model.addParameter
+
+Parameter object
+................
+
+.. autoclass:: model.parameter.parameter.Parameter
+ :members:
--- /dev/null
+Partition
+=========
+
+Create a partition
+------------------
+
+.. autofunction:: model.addPartition
+
+Partition object
+................
+
+.. autoclass:: model.features.partition.Partition
+ :members:
--- /dev/null
+PartSet
+=======
+
+Manipulate Parts in a PartSet.
+
+Manipulate a Part
+-----------------
+
+.. autofunction:: model.addPart
+.. autofunction:: model.duplicatePart
+.. autofunction:: model.removePart
+
+Part object
+...........
+
+.. autoclass:: model.partset.part.Part
+ :members:
--- /dev/null
+Placement
+=========
+
+Create a placement
+------------------
+
+.. autofunction:: model.addPlacement
+
+Placement object
+................
+
+.. autoclass:: model.features.placement.Placement
+ :members:
--- /dev/null
+Revolution
+==========
+
+Create a Revolution
+-------------------
+
+.. autofunction:: model.addRevolution
+
+Revolution object
+.................
+
+.. autoclass:: model.features.revolution.Revolution
+ :members:
+
+Create an Revolution Bolean
+---------------------------
+
+.. autofunction:: model.addRevolutionCut
+.. autofunction:: model.addRevolutionFuse
+
+Revolution Boolean object
+.........................
+
+.. autoclass:: model.features.revolution_boolean.RevolutionBoolean
+ :members:
+
+Create an Revolution Sketch
+---------------------------
+
+.. autofunction:: model.addRevolutionSketch
+
+Revolution Sketch object
+........................
+
+.. autoclass:: model.features.revolution_sketch.RevolutionSketch
+ :members:
--- /dev/null
+Rotation
+========
+
+Create a rotation
+-----------------
+
+.. autofunction:: model.addRotation
+
+Rotation object
+...............
+
+.. autoclass:: model.features.rotation.Rotation
+ :members:
--- /dev/null
+SWIG Generated Modules
+======================
+
+ModelAPI
+--------
+
+.. inheritance-diagram:: ModelAPI
+.. automodule:: ModelAPI
+ :members:
+ :special-members:
+
--- /dev/null
+Translation
+===========
+
+Create a translation
+--------------------
+
+.. autofunction:: model.addTranslation
+
+Translation object
+..................
+
+.. autoclass:: model.features.translation.Translation
+ :members:
def addPartition(part, *args):
- """Add an Partition feature to the Part and return Partition.
+ """Add a Partition feature to the Part and return Partition.
Pass all args to Partition __init__ function.
"""