Version: 9.15.0
Home

An interface to build a 3D Sketcher step-by-step. More...

Public Member Functions

def __init__ (self, geompyD)
 
def addPointsAbsolute (self, *listCoords)
 Add one or more points, sequentially connected with straight segments. More...
 
def addPointsRelative (self, *listCoords)
 Add one or more points, sequentially connected with straight segments. More...
 
def addPointRadiusAnglesRelative (self, length, angle1, angle2, axes="OXY")
 Add one straight segment, defined by two angles and length. More...
 
def addPointRadiusAnglesAbsolute (self, radius, angle1, angle2, axes="OXY")
 Add one straight segment, defined by two angles and radius. More...
 
def addPointRadiusAngleHRelative (self, length, angle, height, axes="OXY")
 Add one straight segment, defined by an angle, a height and a radius. More...
 
def addPointRadiusAngleHAbsolute (self, radius, angle, height, axes="OXY")
 Add one straight segment, defined by an angle, a height and a radius. More...
 
def close (self)
 Set to close the wire. More...
 
def wire (self, theName=None)
 Obtain the sketcher result. More...
 

Data Fields

 geompyD
 
 myCommand
 

Detailed Description

An interface to build a 3D Sketcher step-by-step.

Use geompy.Sketcher3D() method to obtain an instance of this class.

Example

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  geompyD 
)

Member Function Documentation

◆ addPointsAbsolute()

def addPointsAbsolute (   self,
listCoords 
)

Add one or more points, sequentially connected with straight segments.

Coordinates are considered as absolute. If the first point of sketcher is not yet defined, the first point from the listCoords will become the first sketcher point.

Parameters
listCoordsX1, Y1, Z1, X2, Y2, Z2, ... Coordinates of points

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ addPointsRelative()

def addPointsRelative (   self,
listCoords 
)

Add one or more points, sequentially connected with straight segments.

Coordinates are considered relative to the previous point. If the first point of sketcher is not yet defined, the origin (0, 0, 0) will become the first sketcher point.

Parameters
listCoordsX1, Y1, Z1, X2, Y2, Z2, ... Coordinates of points

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ addPointRadiusAnglesRelative()

def addPointRadiusAnglesRelative (   self,
  length,
  angle1,
  angle2,
  axes = "OXY" 
)

Add one straight segment, defined by two angles and length.

If the first point of sketcher is not yet defined, the origin (0, 0, 0) will become the first sketcher point. The radius and angles coordinates are defined in a local coordinate system which origin is the last point of the sketch

Parameters
lengthlength of the segment
angle1angle in a plane, defined by the axes
angle2angle from the plane, defined by the axes
axescan be: "OXY", "OYZ" or "OXZ"

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ addPointRadiusAnglesAbsolute()

def addPointRadiusAnglesAbsolute (   self,
  radius,
  angle1,
  angle2,
  axes = "OXY" 
)

Add one straight segment, defined by two angles and radius.

If the first point of sketcher is not yet defined, the origin (0, 0, 0) will become the first sketcher point. The radius and angles coordinates are defined in a coordinate system which origin is the global coordinate system origin

Parameters
radiusdistance to the coordinate system origin
angle1angle in a plane, defined by the axes
angle2angle from the plane, defined by the axes
axescan be: "OXY", "OYZ" or "OXZ"

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ addPointRadiusAngleHRelative()

def addPointRadiusAngleHRelative (   self,
  length,
  angle,
  height,
  axes = "OXY" 
)

Add one straight segment, defined by an angle, a height and a radius.

If the first point of sketcher is not yet defined, the origin (0, 0, 0) will become the first sketcher point. The radius height and angle coordinates are defined in a local coordinate system which origin is the last point of the sketch

Parameters
axescan be: "OXY", "OYZ" or "OXZ"
angleangle in a plane, defined by the axes
heightheight from the plane, defined by the axes
lengthdistance to the coordinate system origin

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ addPointRadiusAngleHAbsolute()

def addPointRadiusAngleHAbsolute (   self,
  radius,
  angle,
  height,
  axes = "OXY" 
)

Add one straight segment, defined by an angle, a height and a radius.

If the first point of sketcher is not yet defined, the origin (0, 0, 0) will become the first sketcher point. The radius height and angle coordinates are defined in a coordinate system which origin is the global coordinate system origin

Parameters
radiusdistance to the coordinate system origin
angleangle in a plane, defined by the axes
heightheight from the plane, defined by the axes
axescan be: "OXY", "OYZ" or "OXZ"

References Sketcher3D.myCommand, Sketcher2D.myCommand, and gsketcher.printVar().

◆ close()

def close (   self)

Set to close the wire.

References Sketcher3D.myCommand, and Sketcher2D.myCommand.

◆ wire()

def wire (   self,
  theName = None 
)

Obtain the sketcher result.

Parameters
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM_Object, containing the created wire

References CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, Sketcher3D.myCommand, Sketcher2D.myCommand, geomBuilder.ParseSketcherCommand(), and geomBuilder.RaiseIfFailed().

Field Documentation

◆ geompyD

geompyD

◆ myCommand

myCommand