Version: 6.3.1
Home
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 subshapes 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
 Shortcut to MakeFaceWires()
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.

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_Object, containing the created edge.

Example

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_Object, containing the created edge.

Example

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

Create an edge from specified wire.

Parameters:
theWiresource Wire.
theLinearTolerancelinear tolerance value.
theAngularToleranceangular tolerance value.
Returns:
New GEOM_Object, containing the created edge.

Example

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_Object, containing the created wire.

Example

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, only planar face will be built. If impossible, NULL object will be returned.
Returns:
New GEOM_Object, containing the created face.

Example

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, only planar face will be built. If impossible, NULL object will be returned.
Returns:
New GEOM_Object, containing the created face.

Example

def geompy.MakeFaces (   self,
  theWires,
  isPlanarWanted 
)
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_Object, containing the created shell.

Example

def geompy.MakeSolid (   self,
  theShells 
)

Create a solid, bounded by the given shells.

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

Example

def geompy.MakeCompound (   self,
  theShapes 
)

Create a compound of the given shapes.

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

Example

 All Data Structures Namespaces Files Functions Variables
Copyright © 2007-2011 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