+++ /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:
+++ /dev/null
-Extrusion
-=========
-
-.. testsetup::
-
- import model
- model.begin()
- partset = model.moduleDocument()
- part = model.addPart(partset).document()
- plane = model.defaultPlane("XOY")
- sketch = model.addSketch(part, plane)
- p1 = sketch.addPoint(0, 0)
- p2 = sketch.addPoint(0, 1)
- p3 = sketch.addPoint(1, 1)
- p4 = sketch.addPoint(1, 0)
- sketch.addPolygon(p1.pointData(), p2.pointData(), p3.pointData(), p4.pointData())
-
-Provided that a sketch has been created before an extrusion can then be created
-by the following code:
-
-.. doctest::
-
- >>> base = sketch.selectFace()
- >>> extrusion = model.addExtrusion(part, base, 10)
- >>> # Modification of the extrusion
- >>> extrusion.setSize(20)
-
-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.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:
.. toctree::
:maxdepth: 1
+ :glob:
sketcher
-
- connection
- construction
- exchange
-
- boolean
- partition
- extrusion
- revolution
- placement
- rotation
- translation
- group
-
- parameter
- partset
+ model/*
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
+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:
--- /dev/null
+Extrusion
+=========
+
+.. testsetup::
+
+ import model
+ model.begin()
+ partset = model.moduleDocument()
+ part = model.addPart(partset).document()
+ plane = model.defaultPlane("XOY")
+ sketch = model.addSketch(part, plane)
+ p1 = sketch.addPoint(0, 0)
+ p2 = sketch.addPoint(0, 1)
+ p3 = sketch.addPoint(1, 1)
+ p4 = sketch.addPoint(1, 0)
+ sketch.addPolygon(p1.pointData(), p2.pointData(), p3.pointData(), p4.pointData())
+
+Provided that a sketch has been created before an extrusion can then be created
+by the following code:
+
+.. doctest::
+
+ >>> base = sketch.selectFace()
+ >>> extrusion = model.addExtrusion(part, base, 10)
+ >>> # Modification of the extrusion
+ >>> extrusion.setSize(20)
+
+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.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:
--- /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
+Translation
+===========
+
+Create a translation
+--------------------
+
+.. autofunction:: model.addTranslation
+
+Translation object
+..................
+
+.. autoclass:: model.features.translation.Translation
+ :members:
+++ /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
-Translation
-===========
-
-Create a translation
---------------------
-
-.. autofunction:: model.addTranslation
-
-Translation object
-..................
-
-.. autoclass:: model.features.translation.Translation
- :members:
# Author: Daniel Brunier-Coulin
# -----------------------------
-from GeomAPI import *
+#from GeomAPI import *
class Ax3:
Copyright (C) 2014-20xx CEA/DEN, EDF R&D
"""
-from ModelAPI import *
-from GeomAlgoAPI import *
-
-
from model.roots import Interface
-
def addAddition(part, *args):
"""Inserts an addition to the given Part and executes the operation.
This operation adds tool to the given object.