Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Access to sub-shapes by a criteria

Functions

def GetFreeFacesIDs
 Retrieve all free faces from the given shape. More...
 
def GetSharedShapes
 Get all sub-shapes of theShape1 of the given type, shared with theShape2. More...
 
def GetSharedShapesMulti
 Get sub-shapes, shared by input shapes. More...
 
def GetShapesOnPlane
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneWithLocation
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneWithLocationIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinder
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderWithLocation
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderWithLocationIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnSphere
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. More...
 
def GetShapesOnSphereIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. More...
 
def GetShapesOnQuadrangle
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. More...
 
def GetShapesOnQuadrangleIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. More...
 
def GetShapesOnBox
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. More...
 
def GetShapesOnBoxIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. More...
 
def GetShapesOnShape
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetShapesOnShapeAsCompound
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetShapesOnShapeIDs
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetInPlace
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. More...
 
def GetInPlaceByHistory
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. More...
 
def GetSame
 Get sub-shape of theShapeWhere, which is equal to theShapeWhat. More...
 
def GetSameIDs
 Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat. More...
 
def ExtendEdge
 Resize the input edge with the new Min and Max parameters. More...
 
def ExtendFace
 Resize the input face with the new UMin, UMax, VMin and VMax parameters. More...
 
def MakeSurfaceFromFace
 This function takes some face as input parameter and creates new GEOM_Object, i.e. More...
 

Detailed Description

Function Documentation

def GetFreeFacesIDs (   self,
  theShape 
)

Retrieve all free faces from the given shape.

Free face is a face, which is not shared between two shells of the shape.

Parameters
theShapeShape to find free faces in.
Returns
List of IDs of all free faces, contained in theShape.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetSharedShapes (   self,
  theShape1,
  theShape2,
  theShapeType,
  theName = None 
)

Get all sub-shapes of theShape1 of the given type, shared with theShape2.

Parameters
theShape1Shape to find sub-shapes in.
theShape2Shape to find shared sub-shapes with.
theShapeTypeType of sub-shapes to be retrieved.
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
List of sub-shapes of theShape1, shared with theShape2.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetSharedShapesMulti (   self,
  theShapes,
  theShapeType,
  theMultiShare = True,
  theName = None 
)

Get sub-shapes, shared by input shapes.

Parameters
theShapesEither a list or compound of shapes to find common sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType()).
theMultiShareSpecifies what type of shares should be checked:
  • True (default): search sub-shapes from 1st input shape shared with all other input shapes;
  • False: causes to search sub-shapes shared between couples of input shapes.
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.
Note
If theShapes contains single compound, the shares between all possible couples of its top-level shapes are returned; otherwise, only shares between 1st input shape and all rest input shapes are returned.
Returns
List of all found sub-shapes.

Examples:

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

def GetShapesOnPlane (   self,
  theShape,
  theShapeType,
  theAx1,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnPlaneIDs (   self,
  theShape,
  theShapeType,
  theAx1,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnPlaneWithLocation (   self,
  theShape,
  theShapeType,
  theAx1,
  thePnt,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on.
thePntPoint specifying location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnPlaneWithLocationIDs (   self,
  theShape,
  theShapeType,
  theAx1,
  thePnt,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAx1Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on.
thePntPoint specifying location of the plane to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnCylinder (   self,
  theShape,
  theShapeType,
  theAxis,
  theRadius,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnCylinderIDs (   self,
  theShape,
  theShapeType,
  theAxis,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnCylinderWithLocation (   self,
  theShape,
  theShapeType,
  theAxis,
  thePnt,
  theRadius,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
thePntPoint specifying location of the bottom of the cylinder.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnCylinderWithLocationIDs (   self,
  theShape,
  theShapeType,
  theAxis,
  thePnt,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theAxisVector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
thePntPoint specifying location of the bottom of the cylinder.
theRadiusRadius of the cylinder to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnSphere (   self,
  theShape,
  theShapeType,
  theCenter,
  theRadius,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theCenterPoint, specifying center of the sphere to find shapes on.
theRadiusRadius of the sphere to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnSphereIDs (   self,
  theShape,
  theShapeType,
  theCenter,
  theRadius,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theCenterPoint, specifying center of the sphere to find shapes on.
theRadiusRadius of the sphere to find shapes on.
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.GetShapesOnQuadrangle(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnQuadrangle (   self,
  theShape,
  theShapeType,
  theTopLeftPoint,
  theTopRigthPoint,
  theBottomLeftPoint,
  theBottomRigthPoint,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theTopLeftPointPoint, specifying top left corner of a quadrangle
theTopRigthPointPoint, specifying top right corner of a quadrangle
theBottomLeftPointPoint, specifying bottom left corner of a quadrangle
theBottomRigthPointPoint, specifying bottom right corner of a quadrangle
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.GetShapesOnQuadrangleIDs(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnQuadrangleIDs (   self,
  theShape,
  theShapeType,
  theTopLeftPoint,
  theTopRigthPoint,
  theBottomLeftPoint,
  theBottomRigthPoint,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.

Parameters
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theTopLeftPointPoint, specifying top left corner of a quadrangle
theTopRigthPointPoint, specifying top right corner of a quadrangle
theBottomLeftPointPoint, specifying bottom left corner of a quadrangle
theBottomRigthPointPoint, specifying bottom right corner of a quadrangle
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnBox (   self,
  theBox,
  theShape,
  theShapeType,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.

Parameters
theBoxShape for relative comparing.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnBoxIDs (   self,
  theBox,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter.

Parameters
theBoxShape for relative comparing.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnShape (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
List of all found sub-shapes.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnShapeAsCompound (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState,
  theName = None 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
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
All found sub-shapes as compound.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetShapesOnShapeIDs (   self,
  theCheckShape,
  theShape,
  theShapeType,
  theState 
)

Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter.

Parameters
theCheckShapeShape for relative comparing. It must be a solid.
theShapeShape to find sub-shapes of.
theShapeTypeType of sub-shapes to be retrieved (see ShapeType())
theStateThe state of the sub-shapes to find (see GEOM::shape_state)
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetInPlace (   self,
  theShapeWhere,
  theShapeWhat,
  isNewImplementation = False,
  theName = None 
)

Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.

Parameters
theShapeWhereShape to find sub-shapes of.
theShapeWhatShape, specifying what to find.
isNewImplementationimplementation of GetInPlace functionality (default = False, old alghorithm based on shape properties)
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
Compound which includes all found sub-shapes if they have different types; or group of all found shapes of the equal type; or a single found sub-shape.
Note
This function has a restriction on argument shapes. If theShapeWhere has curved parts with significantly outstanding centres (i.e. the mass centre of a part is closer to theShapeWhat than to the part), such parts will not be found.
get_in_place_lost_part.png

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetInPlaceByHistory (   self,
  theShapeWhere,
  theShapeWhat,
  theName = None 
)

Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.

Implementation of this method is based on a saved history of an operation, produced theShapeWhere. The theShapeWhat must be among this operation's arguments (an argument shape or a sub-shape of an argument shape). The operation could be the Partition or one of boolean operations, performed on simple shapes (not on compounds).

Parameters
theShapeWhereShape to find sub-shapes of.
theShapeWhatShape, specifying what to find (must be in the building history of the ShapeWhere).
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
Compound which includes all found sub-shapes if they have different types; or group of all found shapes of the equal type; or a single found sub-shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetSame (   self,
  theShapeWhere,
  theShapeWhat,
  theName = None 
)

Get sub-shape of theShapeWhere, which is equal to theShapeWhat.

Parameters
theShapeWhereShape to find sub-shape of.
theShapeWhatShape, specifying what to find.
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.GEOM_Object for found sub-shape.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def GetSameIDs (   self,
  theShapeWhere,
  theShapeWhat 
)

Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat.

Parameters
theShapeWhereShape to find sub-shape of.
theShapeWhatShape, specifying what to find.
Returns
List of all found sub-shapes indices.

Example

References geomBuilder.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def ExtendEdge (   self,
  theEdge,
  theMin,
  theMax,
  theName = None 
)

Resize the input edge with the new Min and Max parameters.

The input edge parameters range is [0, 1]. If theMin parameter is negative, the input edge is extended, otherwise it is shrinked by theMin parameter. If theMax is greater than 1, the edge is extended, otherwise it is shrinked by theMax parameter.

Parameters
theEdgethe input edge to be resized.
theMinthe minimal parameter value.
theMaxthe maximal parameter value.
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.GEOM_Object, containing the created edge.

Example

References geomBuilder._autoPublish(), geomBuilder.ExtendFace(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def ExtendFace (   self,
  theFace,
  theUMin,
  theUMax,
  theVMin,
  theVMax,
  theName = None 
)

Resize the input face with the new UMin, UMax, VMin and VMax parameters.

The input face U and V parameters range is [0, 1]. If theUMin parameter is negative, the input face is extended, otherwise it is shrinked along U direction by theUMin parameter. If theUMax is greater than 1, the face is extended, otherwise it is shrinked along U direction by theUMax parameter. So as for theVMin, theVMax and V direction of the input face.

Parameters
theFacethe input face to be resized.
theUMinthe minimal U parameter value.
theUMaxthe maximal U parameter value.
theVMinthe minimal V parameter value.
theVMaxthe maximal V parameter value.
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.GEOM_Object, containing the created face.

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

def MakeSurfaceFromFace (   self,
  theFace,
  theName = None 
)

This function takes some face as input parameter and creates new GEOM_Object, i.e.

topological shape by extracting underlying surface of the source face and limiting it by the Umin, Umax, Vmin, Vmax parameters of the source face (in the parametrical space).

Parameters
theFacethe input face.
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.GEOM_Object, containing the created face.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.