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

Modules

 Creating Curves

Functions

def geompy.MakeVertex
 Create point by three coordinates.
def geompy.MakeVertexWithRef
 Create a point, distant from the referenced point on the given distances along the coordinate axes.
def geompy.MakeVertexOnCurve
 Create a point, corresponding to the given parameter on the given curve.
def geompy.MakeVertexOnCurveByCoord
 Create a point by projection give coordinates on the given curve.
def geompy.MakeVertexOnCurveByLength
 Create a point, corresponding to the given length on the given curve.
def geompy.MakeVertexOnSurface
 Create a point, corresponding to the given parameters on the given surface.
def geompy.MakeVertexOnSurfaceByCoord
 Create a point by projection give coordinates on the given surface.
def geompy.MakeVertexOnLinesIntersection
 Create a point on intersection of two lines.
def geompy.MakeTangentOnCurve
 Create a tangent, corresponding to the given parameter on the given curve.
def geompy.MakeTangentPlaneOnFace
 Create a tangent plane, corresponding to the given parameter on the given face.
def geompy.MakeVectorDXDYDZ
 Create a vector with the given components.
def geompy.MakeVector
 Create a vector between two points.
def geompy.MakeLine
 Create a line, passing through the given point and parrallel to the given direction.
def geompy.MakeLineTwoPnt
 Create a line, passing through the given points.
def geompy.MakeLineTwoFaces
 Create a line on two faces intersection.
def geompy.MakePlane
 Create a plane, passing through the given point and normal to the given vector.
def geompy.MakePlaneThreePnt
 Create a plane, passing through the three given points.
def geompy.MakePlaneFace
 Create a plane, similar to the existing one, but with another size of representing face.
def geompy.MakePlane2Vec
 Create a plane, passing through the 2 vectors with center in a start point of the first vector.
def geompy.MakePlaneLCS
 Create a plane, based on a Local coordinate system.
def geompy.MakeMarker
 Create a local coordinate system.
def geompy.MakeMarkerFromShape
 Create a local coordinate system from shape.
def geompy.MakeMarkerPntTwoVec
 Create a local coordinate system from point and two vectors.

Detailed Description

Function Documentation

def geompy.MakeVertex (   self,
  theX,
  theY,
  theZ 
)

Create point by three coordinates.

Parameters
theXThe X coordinate of the point.
theYThe Y coordinate of the point.
theZThe Z coordinate of the point.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexWithRef (   self,
  theReference,
  theX,
  theY,
  theZ 
)

Create a point, distant from the referenced point on the given distances along the coordinate axes.

Parameters
theReferenceThe referenced point.
theXDisplacement from the referenced point along OX axis.
theYDisplacement from the referenced point along OY axis.
theZDisplacement from the referenced point along OZ axis.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexOnCurve (   self,
  theRefCurve,
  theParameter 
)

Create a point, corresponding to the given parameter on the given curve.

Parameters
theRefCurveThe referenced curve.
theParameterValue of parameter on the referenced curve.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexOnCurveByCoord (   self,
  theRefCurve,
  theX,
  theY,
  theZ 
)

Create a point by projection give coordinates on the given curve.

Parameters
theRefCurveThe referenced curve.
theXX-coordinate in 3D space
theYY-coordinate in 3D space
theZZ-coordinate in 3D space
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

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

Create a point, corresponding to the given length on the given curve.

Parameters
theRefCurveThe referenced curve.
theLengthLength on the referenced curve. It can be negative.
theStartPointPoint allowing to choose the direction for the calculation of the length. If None, start from the first point of theRefCurve.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexOnSurface (   self,
  theRefSurf,
  theUParameter,
  theVParameter 
)

Create a point, corresponding to the given parameters on the given surface.

Parameters
theRefSurfThe referenced surface.
theUParameterValue of U-parameter on the referenced surface.
theVParameterValue of V-parameter on the referenced surface.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexOnSurfaceByCoord (   self,
  theRefSurf,
  theX,
  theY,
  theZ 
)

Create a point by projection give coordinates on the given surface.

Parameters
theRefSurfThe referenced surface.
theXX-coordinate in 3D space
theYY-coordinate in 3D space
theZZ-coordinate in 3D space
Returns
New GEOM.GEOM_Object, containing the created point.

Example

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

def geompy.MakeVertexOnLinesIntersection (   self,
  theRefLine1,
  theRefLine2 
)

Create a point on intersection of two lines.

Parameters
theRefLine1,theRefLine2The referenced lines.
Returns
New GEOM.GEOM_Object, containing the created point.

Example

References geompy.RaiseIfFailed().

def geompy.MakeTangentOnCurve (   self,
  theRefCurve,
  theParameter 
)

Create a tangent, corresponding to the given parameter on the given curve.

Parameters
theRefCurveThe referenced curve.
theParameterValue of parameter on the referenced curve.
Returns
New GEOM.GEOM_Object, containing the created tangent.

Example

References geompy.RaiseIfFailed().

def geompy.MakeTangentPlaneOnFace (   self,
  theFace,
  theParameterU,
  theParameterV,
  theTrimSize 
)

Create a tangent plane, corresponding to the given parameter on the given face.

Parameters
theFaceThe face for which tangent plane should be built.
theParameterVvertical value of the center point (0.0 - 1.0).
theParameterUhorisontal value of the center point (0.0 - 1.0).
theTrimSizethe size of plane.
Returns
New GEOM.GEOM_Object, containing the created tangent.

Example

References geompy.RaiseIfFailed().

def geompy.MakeVectorDXDYDZ (   self,
  theDX,
  theDY,
  theDZ 
)

Create a vector with the given components.

Parameters
theDXX component of the vector.
theDYY component of the vector.
theDZZ component of the vector.
Returns
New GEOM.GEOM_Object, containing the created vector.

Example

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

def geompy.MakeVector (   self,
  thePnt1,
  thePnt2 
)

Create a vector between two points.

Parameters
thePnt1Start point for the vector.
thePnt2End point for the vector.
Returns
New GEOM.GEOM_Object, containing the created vector.

Example

References geompy.RaiseIfFailed().

def geompy.MakeLine (   self,
  thePnt,
  theDir 
)

Create a line, passing through the given point and parrallel to the given direction.

Parameters
thePntPoint. The resulting line will pass through it.
theDirDirection. The resulting line will be parallel to it.
Returns
New GEOM.GEOM_Object, containing the created line.

Example

References geompy.RaiseIfFailed().

def geompy.MakeLineTwoPnt (   self,
  thePnt1,
  thePnt2 
)

Create a line, passing through the given points.

Parameters
thePnt1First of two points, defining the line.
thePnt2Second of two points, defining the line.
Returns
New GEOM.GEOM_Object, containing the created line.

Example

References geompy.RaiseIfFailed().

def geompy.MakeLineTwoFaces (   self,
  theFace1,
  theFace2 
)

Create a line on two faces intersection.

Parameters
theFace1First of two faces, defining the line.
theFace2Second of two faces, defining the line.
Returns
New GEOM.GEOM_Object, containing the created line.

Example

References geompy.RaiseIfFailed().

def geompy.MakePlane (   self,
  thePnt,
  theVec,
  theTrimSize 
)

Create a plane, passing through the given point and normal to the given vector.

Parameters
thePntPoint, the plane has to pass through.
theVecVector, defining the plane normal direction.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
Returns
New GEOM.GEOM_Object, containing the created plane.

Example

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

def geompy.MakePlaneThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theTrimSize 
)

Create a plane, passing through the three given points.

Parameters
thePnt1First of three points, defining the plane.
thePnt2Second of three points, defining the plane.
thePnt3Fird of three points, defining the plane.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
Returns
New GEOM.GEOM_Object, containing the created plane.

Example

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

def geompy.MakePlaneFace (   self,
  theFace,
  theTrimSize 
)

Create a plane, similar to the existing one, but with another size of representing face.

Parameters
theFaceReferenced plane or LCS(Marker).
theTrimSizeNew half size of a side of quadrangle face, representing the plane.
Returns
New GEOM.GEOM_Object, containing the created plane.

Example

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

def geompy.MakePlane2Vec (   self,
  theVec1,
  theVec2,
  theTrimSize 
)

Create a plane, passing through the 2 vectors with center in a start point of the first vector.

Parameters
theVec1Vector, defining center point and plane direction.
theVec2Vector, defining the plane normal direction.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
Returns
New GEOM.GEOM_Object, containing the created plane.

Example

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

def geompy.MakePlaneLCS (   self,
  theLCS,
  theTrimSize,
  theOrientation 
)

Create a plane, based on a Local coordinate system.

Parameters
theLCScoordinate system, defining plane.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
theOrientationOXY, OYZ or OZX orientation - (1, 2 or 3)
Returns
New GEOM.GEOM_Object, containing the created plane.

Example

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

def geompy.MakeMarker (   self,
  OX,
  OY,
  OZ,
  XDX,
  XDY,
  XDZ,
  YDX,
  YDY,
  YDZ 
)

Create a local coordinate system.

Parameters
OX,OY,OZThree coordinates of coordinate system origin.
XDX,XDY,XDZThree components of OX direction
YDX,YDY,YDZThree components of OY direction
Returns
New GEOM.GEOM_Object, containing the created coordinate system.

Example

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

def geompy.MakeMarkerFromShape (   self,
  theShape 
)

Create a local coordinate system from shape.

Parameters
theShapeThe initial shape to detect the coordinate system.
Returns
New GEOM.GEOM_Object, containing the created coordinate system.

Example

References geompy.RaiseIfFailed().

def geompy.MakeMarkerPntTwoVec (   self,
  theOrigin,
  theXVec,
  theYVec 
)

Create a local coordinate system from point and two vectors.

Parameters
theOriginPoint of coordinate system origin.
theXVecVector of X direction
theYVecVector of Y direction
Returns
New GEOM.GEOM_Object, containing the created coordinate system.

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