SALOME documentation central

Sketcher
[Creating geometrical objects]

Functions

def geompy.MakeSketcher
 Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
def geompy.MakeSketcherOnPlane
 Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
def geompy.Make3DSketcher

Function Documentation

def geompy.MakeSketcher (   self,
  theCommand,
  theWorkingPlane = [0 
)

Create a sketcher (wire or face), following the textual description, passed through theCommand argument.


Edges of the resulting wire or face will be arcs of circles and/or linear segments.
Format of the description string have to be the following:

"Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"

Where:

  • x1, y1 are coordinates of the first sketcher point (zero by default),
  • CMD is one of
    • "R angle" : Set the direction by angle
    • "D dx dy" : Set the direction by DX & DY

    • "TT x y" : Create segment by point at X & Y
    • "T dx dy" : Create segment by point with DX & DY
    • "L length" : Create segment by direction & Length
    • "IX x" : Create segment by direction & Intersect. X
    • "IY y" : Create segment by direction & Intersect. Y

    • "C radius length" : Create arc by direction, radius and length(in degree)

    • "WW" : Close Wire (to finish)
    • "WF" : Close Wire and build face (to finish)
Parameters:
theCommand String, defining the sketcher in local coordinates of the working plane.
theWorkingPlane Nine double values, defining origin, OZ and OX directions of the working plane.
Returns:
New GEOM_Object, containing the created wire.

Example

def geompy.MakeSketcherOnPlane (   self,
  theCommand,
  theWorkingPlane 
)

Create a sketcher (wire or face), following the textual description, passed through theCommand argument.


For format of the description string see the previous method.

Parameters:
theCommand String, defining the sketcher in local coordinates of the working plane.
theWorkingPlane Planar Face or LCS(Marker) of the working plane.
Returns:
New GEOM_Object, containing the created wire.

Example

def geompy.Make3DSketcher (   self,
  theCoordinates 
)
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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