Operations
- boolOpCommon(From, Tools)
Intersection: Intersection between two objects
Alias: common- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCommon(From, Tool)
Intersection: Intersection between two objects
Alias: common- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCommon(GeomName, From, Tools)
Intersection: Intersection between two objects
Alias: common- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCommon(GeomName, From, Tool)
Intersection: Intersection between two objects
Alias: common- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean operation between geometric entities
# This command performs a Boolean operation between a main entity and one or more
# tool entities. The operation modifies or combines geometries depending on
# the Boolean type (e.g., common, union, subtraction).
# Arguments:
# 1. String: Name of the resulting geometry.
# 2. Geometry: Tool geometry (or list of geometries) that applies the operation.
# 3. List: Main geometry (or geometries) to which the operation is applied.
# Main geometry to apply the Boolean operation to
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used to perform the Boolean operation
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "common" operation between both geometries
boolOpCommon(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry representing the intersection (common volume or area)
# between the main entity and the tool entity.
- boolOpCut(From, Tools)
Subtraction: Subtract one object from another, removing the common part
Alias: cut- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCut(From, Tool)
Subtraction: Subtract one object from another, removing the common part
Alias: cut- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCut(GeomName, From, Tools)
Subtraction: Subtract one object from another, removing the common part
Alias: cut- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpCut(GeomName, From, Tool)
Subtraction: Subtract one object from another, removing the common part
Alias: cut- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean "cut" operation between geometric entities
# This command performs a Boolean "cut" operation, subtracting the tool
# geometry (or geometries) from the main one. The result is the portion
# of the main geometry that remains after removing the intersecting part.
# Arguments:
# 1. String: Name of the resulting geometry.
# 2. Geometry: Tool geometry (or list of geometries) that performs the cut.
# 3. List: Main geometry (or geometries) to which the cut is applied.
# Main geometry to be cut
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used to perform the cut
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "cut" operation (main - tool)
boolOpCut(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry representing the main entity with the overlapping region
# of the tool entity removed.
- boolOpFuse(From, Tools)
Union: Join two objects to create a single one
Alias: fuse- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- boolOpFuse(From, Tool)
Union: Join two objects to create a single one
Alias: fuse- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- boolOpFuse(GeomName, From, Tools)
Union: Join two objects to create a single one
Alias: fuse- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- boolOpFuse(GeomName, From, Tool)
Union: Join two objects to create a single one
Alias: fuse- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. Geometric operation cannot be done with the same geometry. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean "fuse" (union) operation between geometric entities
# This command performs a Boolean "fuse" operation, merging the tool geometry
# (or geometries) with the main one. The result is a single geometry that
# encompasses the combined volume or surface of all inputs.
# Arguments:
# 1. String: Name of the resulting geometry.
# 2. Geometry: Tool geometry (or list of geometries) to be merged.
# 3. List: Main geometry (or geometries) to which the merge is applied.
# Main geometry to be merged
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used for the merge
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "fuse" (union) operation
boolOpFuse(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry representing the union of the main and tool entities,
# forming a single continuous object.
- boolOpSection(From, Tools)
Section: Intersection by section between two objects
- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSection(GeomName, From, Tools)
Section: Intersection by section between two objects
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean "section" operation between geometric entities
# This command performs a Boolean "section" operation, generating the intersection
# curves between the main geometry and the tool geometry. Unlike other Boolean
# operations (such as fuse, cut, or split), this one does not keep volumetric
# or surface regions, only the resulting intersection curves.
# Arguments:
# 1. String: Name of the resulting geometry (section operation).
# 2. Geometry: Tool geometry used to create the intersection.
# 3. List: Main geometry (or geometries) to be intersected.
# Main geometry to apply the section operation
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used to generate the intersection
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "section" operation
boolOpSection(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry containing the *intersection curves* between
# the main and tool geometries.
- boolOpSplitLeft(From, Tools)
Split left: Intersection by split of an object keeping the upper part
- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitLeft(From, Tool)
Split left: Intersection by split of an object keeping the upper part
- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitLeft(GeomName, From, Tools)
Split left: Intersection by split of an object keeping the upper part
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitLeft(GeomName, From, Tool)
Split left: Intersection by split of an object keeping the upper part
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean "split left" operation between geometric entities
# This command performs a Boolean "split" operation, dividing the main geometry
# using the tool geometry as a cutting surface or volume. The result retains
# only the *left* portion of the main geometry relative to the splitting tool.
# Arguments:
# 1. String: Name of the resulting geometry.
# 2. Geometry: Tool geometry used for splitting.
# 3. List: Main geometry (or geometries) to be split.
# Main geometry to apply the split
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used to perform the split
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "split left" operation
boolOpSplitLeft(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry containing only the *left side* of the main geometry,
# relative to the tool geometry used for splitting.
- boolOpSplitRight(From, Tools)
Split right: Intersection by split of an object keeping the lower part
- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitRight(From, Tool)
Split right: Intersection by split of an object keeping the lower part
- Parameters:
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitRight(GeomName, From, Tools)
Split right: Intersection by split of an object keeping the lower part
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tools (List) – Tools: Geometric tools to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- boolOpSplitRight(GeomName, From, Tool)
Split right: Intersection by split of an object keeping the lower part
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
From (Entity) – Geometric entity: Geometric entity on which the boolean operation is applied. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Tool (POCCQuad) – Tool: Geometric tool to make the boolean operation. Conditions: “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Performing a Boolean "split right" operation between geometric entities
# This command performs a Boolean "split" operation, dividing the main geometry
# using the tool geometry as a cutting surface or volume. The result retains
# only the *right* portion of the main geometry relative to the splitting tool.
# Arguments:
# 1. String: Name of the resulting geometry.
# 2. Geometry: Tool geometry used for splitting.
# 3. List: Main geometry (or geometries) to be split.
# Main geometry to apply the split
main_quad_geom_entity1 = createQuad(
"Surface",
Point(-1, -1, 0),
Point(-1, 1, 0),
Point( 1, 1, 0),
Point( 1, -1, 0)
)
# Tool geometry used to perform the split
tool_quad_geom_entity2 = createQuad(
"Surface (2)",
Point(0, 0, 0),
Point(0, 2, 0),
Point(2, 2, 0),
Point(2, 0, 0)
)
# Perform a Boolean "split right" operation
boolOpSplitRight(
"Bool operation",
tool_quad_geom_entity2,
[main_quad_geom_entity1]
)
# Result:
# A new geometry containing only the *right side* of the main geometry,
# relative to the tool geometry used for splitting.
- createTrimCurve(entity, Param)
Trim: Trim the curve
Alias: trimCurve- Parameters:
entity ([Entity]) – Entity/Entities to apply the command
Param (Double) – ParamU: Parameter on the curve. Conditions: Value must be greater than 0.00 and lower than 1.00.
- Return type:
Return a GeomWire
- createTrimCurve(entity, GeomName, Param)
Trim: Trim the curve
Alias: trimCurve- Parameters:
entity ([Entity]) – Entity/Entities to apply the command
GeomName (str) – Name. Conditions: “” input must be non-empty.
Param (Double) – ParamU: Parameter on the curve. Conditions: Value must be greater than 0.00 and lower than 1.00.
- Return type:
Return a GeomWire
Example:
# -*- coding: utf-8 -*-
# Example: Trimming a line to create a new curve
# This command trims an existing curve (typically a line)
# to produce a new, shorter curve segment.
# The trimming is controlled by a parametric value between 0 and 1,
# where:
# 0 = start of the curve
# 1 = end of the curve
# Create the original line
line_geom_entity = createLine("Curve", Point(-7, -3, 0), Point(-8, 4, 0))
# Trim the line at the parametric position 0.5 (midpoint)
# and create a new curve entity within the specified group
createTrimCurve([line_geom_entity], "Curves group", 0.5)
# Result:
# A new curve segment (half of the original line) is created
# and stored in the "Curves group" container.
- extrude(GeomObjectList, Path)
Path: Extrude geometries through a path
- Parameters:
GeomObjectList (List) – Geometric entities: Geometric entities basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- extrude(GeomObject, Path)
Path: Extrude geometries through a path
- Parameters:
GeomObject (POCCGeomLine) – Geometric entity: Geometric entity basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- extrude(GeomName, GeomObjectList, Path)
Path: Extrude geometries through a path
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObjectList (List) – Geometric entities: Geometric entities basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
- extrude(GeomName, GeomObject, Path)
Path: Extrude geometries through a path
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObject (POCCGeomLine) – Geometric entity: Geometric entity basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Extruding a geometry along a polyline path
# This command extrudes a given geometric entity along a defined curve or polyline path.
# It is typically used to generate a 3D shape that follows a custom trajectory.
# Arguments:
# 1. String: Name of the resulting extrusion entity.
# 2. List: Entities to be extruded (e.g., surfaces, curves).
# 3. Curve or path: The geometric entity defining the extrusion trajectory.
# Geometry to extrude
object_geom_entity = createQuad(
"Surface",
Point(0, 0, 0),
Point(1, 0, 0),
Point(1, 1, 0),
Point(0, 1, 0)
)
# Path or curve used for the extrusion
polyline_geom_entity = createPolyline(
"Curves group",
[Point(0, 0, 0), Point(1, 0, 1), Point(2, 0, 2)]
)
# Perform the extrusion along the defined curve
extrude(
"Extrusion",
[object_geom_entity],
polyline_geom_entity
)
# Result:
# A new geometric entity named "Extrusion" is created by extruding
# the given surface along the specified polyline path.
- extrudeLength(GeomObjectList, Path, Dimension)
Partial length: Extrude geometries through a straigth curve, with a defined length
- Parameters:
GeomObjectList (List) – Geometric entities: Geometric entities basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Dimension (Double) – Height: Height of extrusion. Conditions: Value must be greater than 0.
- Return type:
Return a GeomBody
- extrudeLength(GeomObject, Path, Dimension)
Partial length: Extrude geometries through a straigth curve, with a defined length
- Parameters:
GeomObject (POCCGeomLine) – Geometric entity: Geometric entity basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Dimension (Double) – Height: Height of extrusion. Conditions: Value must be greater than 0.
- Return type:
Return a GeomBody
- extrudeLength(GeomName, GeomObjectList, Path, Dimension)
Partial length: Extrude geometries through a straigth curve, with a defined length
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObjectList (List) – Geometric entities: Geometric entities basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Dimension (Double) – Height: Height of extrusion. Conditions: Value must be greater than 0.
- Return type:
Return a GeomBody
- extrudeLength(GeomName, GeomObject, Path, Dimension)
Partial length: Extrude geometries through a straigth curve, with a defined length
- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObject (POCCGeomLine) – Geometric entity: Geometric entity basis of the extrusion. Conditions: “” does not exist in the dropdown list.
Path (Entity) – Axis: Direction for the extrusion. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Dimension (Double) – Height: Height of extrusion. Conditions: Value must be greater than 0.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Extruding a geometry along a path
# This command performs an extrusion of a given geometric entity
# along a specified path or axis, creating a 3D volume or surface.
# Arguments:
# 1. String: Name of the resulting extrusion entity.
# 2. List: Entities to be extruded (e.g., surfaces, curves).
# 3. Path or axis along which the extrusion will be performed.
# 4. Double: Extrusion length.
# Geometry to extrude
object_geom_entity = createQuad(
"Surface",
Point(0, 0, 0),
Point(1, 0, 0),
Point(1, 1, 0),
Point(0, 1, 0)
)
# Path or axis used for the extrusion
path_geom_entity = createAxis(
"Curve",
Point(0, 0, 0),
Vector(0, 0, 1)
)
# Length of the extrusion
extrude_path_length = Double(1)
# Perform the extrusion operation
geom_entity = extrudeLength(
"Extrusion",
[object_geom_entity],
path_geom_entity,
extrude_path_length
)
# Result:
# A new geometric entity named "Extrusion" is created by extruding
# the given surface along the specified path for the defined length.
- getCurves(Geom)
Get curves
- Parameters:
Geom (POCCVertexByCoord) – Geometry. Conditions: “” does not exist in the dropdown list.
- getSurfaces(Geom)
Get faces
- Parameters:
Geom (POCCVertexByCoord) – Geometry. Conditions: “” does not exist in the dropdown list.
- revolve(GeomObjectList, Center, Angle)
Revolve: Revolve an entity around an axis
Constraints: 2 dimensions- Parameters:
GeomObjectList (List) – Geometric entities: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Center (Point) – Center: Center for the revolution.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomObject, Center, Angle)
Revolve: Revolve an entity around an axis
Constraints: 2 dimensions- Parameters:
GeomObject (POCCVertexByCoord) – Geometric entity: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Center (Point) – Center: Center for the revolution.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomObjectList, Axis, Angle)
Revolve: Revolve an entity around an axis
Constraints: 3 dimensions- Parameters:
GeomObjectList (List) – Geometric entities: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Axis (Entity) – Axis: Direction vector for the revolution. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomObject, Axis, Angle)
Revolve: Revolve an entity around an axis
Constraints: 3 dimensions- Parameters:
GeomObject (POCCVertexByCoord) – Geometric entity: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Axis (Entity) – Axis: Direction vector for the revolution. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomName, GeomObjectList, Center, Angle)
Revolve: Revolve an entity around an axis
Constraints: 2 dimensions- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObjectList (List) – Geometric entities: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Center (Point) – Center: Center for the revolution.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomName, GeomObject, Center, Angle)
Revolve: Revolve an entity around an axis
Constraints: 2 dimensions- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObject (POCCVertexByCoord) – Geometric entity: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Center (Point) – Center: Center for the revolution.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomName, GeomObjectList, Axis, Angle)
Revolve: Revolve an entity around an axis
Constraints: 3 dimensions- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObjectList (List) – Geometric entities: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Axis (Entity) – Axis: Direction vector for the revolution. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
- revolve(GeomName, GeomObject, Axis, Angle)
Revolve: Revolve an entity around an axis
Constraints: 3 dimensions- Parameters:
GeomName (str) – Name. Conditions: “” input must be non-empty.
GeomObject (POCCVertexByCoord) – Geometric entity: Geometric entity basis of the revolution. Conditions: “” does not exist in the dropdown list.
Axis (Entity) – Axis: Direction vector for the revolution. Conditions: The input must be non-empty. “” does not exist in the dropdown list.
Angle (Double) – Angle: Angle. Conditions: Value must be greater or equal than 0.00 and lower than 6.28.
- Return type:
Return a GeomBody
Example:
# -*- coding: utf-8 -*-
# Example: Creating a solid or surface by revolving a geometry around an axis
# This command revolves one or more geometric entities around a specified axis.
# The revolution is defined by an angle (in degrees).
# The result can be a solid or surface depending on the input geometry.
# This command does not have referenced/non-referenced modes; the entities are provided directly.
# Define the revolution angle
revolve_angle = Double(360) # Angle of revolution in degrees
# Define the axis around which the geometry will be revolved
axis_geom_entity = createAxis(
"Curve",
Point(0, 0, 0), # Axis origin
Vector(1, 0, 0) # Axis direction
)
# Create the geometry to revolve (example: a quad)
quad_base_to_revolve_geom_entity = createQuad(
"Surface",
Point(0, 0, 0),
Point(1, 0, 0),
Point(1, 1, 0),
Point(0, 1, 0)
)
# Perform the revolution
geom_volume_entity = revolve(
"Revolution", # Name of the resulting entity
[quad_base_to_revolve_geom_entity], # List of geometries to revolve
axis_geom_entity, # Axis entity for the revolution
revolve_angle # Angle of revolution in degrees
)
# Result:
# A solid or surface entity is created by revolving the given geometry
# around the specified axis by the defined angle.