Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules | Functions
Creating Advanced Geometrical Objects
Creating geometrical objects

Modules

 Decompose objects
 Decompose objects deprecated methods
 Access to sub-shapes by their unique IDs inside the main shape
 Access to sub-shapes by a criteria
 Advanced objects creation functions

Functions

def geompy.MakeEdge
 Create a linear edge with specified ends.
def geompy.MakeEdgeOnCurveByLength
 Create a new edge, corresponding to the given length on the given curve.
def geompy.MakeEdgeWire
 Create an edge from specified wire.
def geompy.MakeWire
 Create a wire from the set of edges and wires.
def geompy.MakeFace
 Create a face on the given wire.
def geompy.MakeFaceWires
 Create a face on the given wires set.
def geompy.MakeFaces
 See MakeFaceWires() method for details.
def geompy.MakeShell
 Create a shell from the set of faces and shells.
def geompy.MakeSolid
 Create a solid, bounded by the given shells.
def geompy.MakeCompound
 Create a compound of the given shapes.

Detailed Description

Function Documentation

def geompy.MakeEdge (   self,
  thePnt1,
  thePnt2 
)

Create a linear edge with specified ends.

Parameters
thePnt1Point for the first end of edge.
thePnt2Point for the second end of edge.
Returns
New GEOM.GEOM_Object, containing the created edge.

Example

References geompy.RaiseIfFailed().

def geompy.MakeEdgeOnCurveByLength (   self,
  theRefCurve,
  theLength,
  theStartPoint = None 
)

Create a new edge, corresponding to the given length on the given curve.

Parameters
theRefCurveThe referenced curve (edge).
theLengthLength on the referenced curve. It can be negative.
theStartPointAny point can be selected for it, the new edge will begin at the end of theRefCurve, close to the selected point. If None, start from the first point of theRefCurve.
Returns
New GEOM.GEOM_Object, containing the created edge.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakeEdgeWire (   self,
  theWire,
  theLinearTolerance = 1e-07,
  theAngularTolerance = 1e-12 
)

Create an edge from specified wire.

Parameters
theWiresource Wire
theLinearTolerancelinear tolerance value (default = 1e-07)
theAngularToleranceangular tolerance value (default = 1e-12)
Returns
New GEOM.GEOM_Object, containing the created edge.

Example

References geompy.RaiseIfFailed().

def geompy.MakeWire (   self,
  theEdgesAndWires,
  theTolerance = 1e-07 
)

Create a wire from the set of edges and wires.

Parameters
theEdgesAndWiresList of edges and/or wires.
theToleranceMaximum distance between vertices, that will be merged. Values less than 1e-07 are equivalent to 1e-07 (Precision::Confusion())
Returns
New GEOM.GEOM_Object, containing the created wire.

Example

References geompy.RaiseIfFailed().

def geompy.MakeFace (   self,
  theWire,
  isPlanarWanted 
)

Create a face on the given wire.

Parameters
theWireclosed Wire or Edge to build the face on.
isPlanarWantedIf TRUE, the algorithm tries to build a planar face. If the tolerance of the obtained planar face is less than 1e-06, this face will be returned, otherwise the algorithm tries to build any suitable face on the given wire and prints a warning message.
Returns
New GEOM.GEOM_Object, containing the created face.

Example

References geompy.RaiseIfFailed().

def geompy.MakeFaceWires (   self,
  theWires,
  isPlanarWanted 
)

Create a face on the given wires set.

Parameters
theWiresList of closed wires or edges to build the face on.
isPlanarWantedIf TRUE, the algorithm tries to build a planar face. If the tolerance of the obtained planar face is less than 1e-06, this face will be returned, otherwise the algorithm tries to build any suitable face on the given wire and prints a warning message.
Returns
New GEOM.GEOM_Object, containing the created face.

Example

References geompy.RaiseIfFailed().

def geompy.MakeFaces (   self,
  theWires,
  isPlanarWanted 
)

See MakeFaceWires() method for details.

Example 1
Example 2

def geompy.MakeShell (   self,
  theFacesAndShells 
)

Create a shell from the set of faces and shells.

Parameters
theFacesAndShellsList of faces and/or shells.
Returns
New GEOM.GEOM_Object, containing the created shell.

Example

References geompy.RaiseIfFailed().

def geompy.MakeSolid (   self,
  theShells 
)

Create a solid, bounded by the given shells.

Parameters
theShellsSequence of bounding shells.
Returns
New GEOM.GEOM_Object, containing the created solid.

Example

References geompy.RaiseIfFailed().

def geompy.MakeCompound (   self,
  theShapes 
)

Create a compound of the given shapes.

Parameters
theShapesList of shapes to put in compound.
Returns
New GEOM.GEOM_Object, containing the created compound.

Example

References geompy.RaiseIfFailed().

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS