# Basic operations

In GEOM you can perform basic operations with geometrical objects aimed at creation of more complex shapes. These operations are:

- Partition

- Archimede

- Fillet

- Chamfer

- Blocks

- Multi-transformation

- Explode on blocks

To perform basic operations on geometrical objects:

In the main menu select Operations.

Partition

Description: Builds a shape by intersection.

Result: GEOM_Object.

TUI Command: geompy.MakePartition(ListOfShapes, ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, ListOfMaterials), where ListOfShapes is a list of shapes to be intersected, ListOfTools is a list of shapes to intersect the shapes from ListOfShapes, ListOfKeepInside is a list of shapes outside which the results will be deleted, ListOfRemoveInside is a list of shapes inside which the results will be deleted, Limit is a type of the result shapes, if RemoveWebs is True the Glue 3D algorithm will be performed on the results, ListOfMaterials is a list of materials indices for each shape, it makes sense only if RemoveWebs is True.

Arguments: Up to 4 shapes + reconstruction limit.

- 1st Constructor: Name + 2 shapes (first shape will be intersected by the second shape) + reconstruction limit.

- 2nd Constructor: Name + 1 shape which will be intersected + 1 cutting face.

Dialog Box:

Example:

Archimede

Description: Creates a plane corresponding to the modeled water-line of the object plunged into the water (in Z direction).

Result: GEOM_Object.

TUI Command: geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), where Shape is a shape to put into the water, Weight is a weight of the shape, WaterDensity is density of water, MeshingDeflection is a deflection of the mesh, using to compute the section.

GUI Arguments: Name + 1 shape + 3 values (Weight, Water Density & Meshing Deflection).

Dialog Box:

Example:

Fillet

Description: Make fillets of the edges of a shape.

Result: GEOM_Object.

TUI Command: geompy.MakeFillet(Shape, Radius, ShapeType, ListOfShapeID), where Shape is a shape to create a fillet on, Radius is a radius of the fillet, ShapeType is a type of shapes to be processed, ListOfShapeID is a list of subshape’s Ids to be processed.

Arguments:

- 1st Constructor: Name + 1 shape + 1 value (fillet radius).

- 2nd Constructor: Name + 1 shape + 1 Selection of edges + 1 value (Fillet radius).

- 3rd Constructor: Name + 1 shape + 1 Selection of faces + 1 value (Fillet radius).

Dialog Box:

Example:

Chamfer

Description: Makes chamfer of the edges of a Shape.

Result: GEOM_Object.

TUI Command:

- geompy.MakeChamferEdge(Shape, D1, D2, Face1, Face2), where Shape is a shape to create a chamfer on, D1 is a chamfer size along Face1, D2 is a chamfer size along Face2, Face1 and Face2 are indices of faces in Shape.

- geompy.MakeChamferFace(Shape, D1, D2, ListOfFaceID), where Shape is a shape to create chamfer on, D1 is a chamfer size along a face from ListOfFaceID, D2 is a chamfer size along two faces connected to the edge to which the chamfer is applied, ListOfFaceID is a list of indices of faces in Shape.

Arguments:

- 1st Constructor : Name + 1 SHAPE + 1 value (Chamfer dimension).

- 2nd Constructor : Name + 1 SHAPE + 2 faces + 2 values (Chamfer dimensions).

- 3rd Constructor : Name + 1 SHAPE + 1 Selection of faces + 2 values (Chamfer dimensions).

Dialog Box:

Example:

Block multi-transformation

Description: Makes several translations of a block (solid) in one or two directions depending on the arguments specified by the user.

Result: GEOM_Object.

TUI Command:

- geompy. MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), where Block is a block to be transformed, DirFaceID1 is an ID of the face which defines the first direction of transformation, DirFaceID2 is an ID of the face which defines the second direction of transformation, NbTimes is a numeber of transformations.

- geompy. MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, DirFaceID2V, NbTimesV), where Block is a block to be transformed, DirFaceID1U and DirFace1V are ID’s of the faces, which define directions of the first transformation, DirFaceID1V and DirFaceID2V are ID’s of the faces which define directions of the second transformation, NbTimesU and NbTimesV are numbers of transformations.

Arguments:

- 1D transformation: Name + 1 hexahedral solid + 1 or 2 faces + 1 integer (number of blocks)

- 2D transformation: Name + 1 hexahedral solid +

- 2 faces and 1 integer, or

- 3 or 4 faces and 2 integers

Dialog Box:

Example:

Explode on blocks

Description: Returns blocks of the given compound. The user may define the type blocks to be extracted by setting the minimum and maximum number of faces in the target block. By checking the corresponding box the user may also interactively choose the blocks from a compound .

Result: GEOM_Object.

TUI Command: geompy.MakeBlockExplode(Compound, MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal and the maximal number of faces of the resulting blocks.

Arguments: 1 compound + 1 integer (min. and max. number of faces in the block to be extracted).

Dialog Box:

Example: