Skip to content

hertzforge.service.ops_solids

ops_solids

Solid modeling on the connection's project: a new geometry, the solids it is made of (blocks, cylinders, cones, spheres, sections, plates, disks and holes), the booleans and patterns of them, Mesh Solids, Mate Surfaces and the view a geometry opens on.

Each operation runs the Project verb the panes run (add_solid_block, combine_solids, mesh_solids and the rest) and answers with the geometry drawn, its meshed elements and its parts' surfaces as the kernel tessellates them (core.solids.shape_triangles), and a table of the solids. Solids are named by id from that table ("1, 3"). Lengths are typed in the connection's display system, marked length here and taken to meters by the server before an operation runs, so every operation reads meters; angles are in degrees about the geometry's X, then Y, then Z axes.

Functions:

Name Description
new_geometry

project.new_geometry: an empty geometry to build a part in from

part_solids

What the Solids row or solids picked in the tree show: each part's surface

view_solids

project.solids: a geometry's solids drawn; it changes nothing.

solid_fill

An Add form's values for the solid item, its Edit: lengths times scale, which

add_solid_block

project.add_solid_block: a block, its widths along its own axes,

add_solid_cylinder

project.add_solid_cylinder: a cylinder about its own Z

add_solid_cone

project.add_solid_cone: a cone or frustum along its own Z, its

add_solid_sphere

project.add_solid_sphere: a sphere about its center

add_solid_section

project.add_solid_section: a structural section along its own Z

add_solid_plate

project.add_solid_plate: a flat rectangle in its own XY plane,

add_solid_disk

project.add_solid_disk: a flat circle in its own XY plane,

add_solid_hole

project.add_solid_hole: a hole entering at its center and running

edit_solid

project.edit_solid: a solid changed after it is made, only the

move_solids

project.move_solids: parts moved whole, each with every solid it

copy_solids

project.copy_solids: solids copied, recipe and all, into the same

reorder_solids

project.reorder_solids: the parts, or one boolean's solids, put in

combine_solids

project.combine_solids: two or more parts made one by a union, a

separate_solids

project.separate_solids: booleans and patterns taken apart, the

delete_solids

project.delete_solids: solids deleted, each with every solid it is

pattern_solids

project.pattern_solids: parts copied in rows, columns and layers

likely_size

The element size the parts ids are likely to hold at as elements, in meters:

mesh_solids

project.mesh_solids: parts meshed into hexes, tetras or shells at

mate_surfaces

project.mate_surfaces: a mate between two element groups, made or edited. A new

delete_mated_surfaces

project.delete_mated_surfaces: kept sets deleted by id

set_view

project.set_view: the view a geometry opens on, where the eye is

Classes

Functions:

new_geometry

new_geometry(project: Any, params: dict[str, Any]) -> list[dict]

project.new_geometry: an empty geometry to build a part in from solids (Project.new_geometry), recording a length unit, the display system's unless one is named; its coordinates are held in SI either way. The app runs it at once, asking nothing (Brandon, 2026-11-10): a name is changed in the tree.

part_solids

part_solids(name: str, geometry: Any, ids: list[int] | None = None) -> list[dict]

What the Solids row or solids picked in the tree show: each part's surface drawn with the mesh, before it is meshed too (Brandon, 2026-11-10). Solids picked (ids) carry the gimbal, whose drag runs Move Part on them. A part the kernel cannot make is said above it.

view_solids

view_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.solids: a geometry's solids drawn; it changes nothing.

solid_fill

solid_fill(item: Any, scale: float) -> dict[str, str]

An Add form's values for the solid item, its Edit: lengths times scale, which takes meters into the units the form is typed in.

add_solid_block

add_solid_block(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_block: a block, its widths along its own axes, centered and turned (Project.add_solid_block).

add_solid_cylinder

add_solid_cylinder(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_cylinder: a cylinder about its own Z (Project.add_solid_cylinder).

add_solid_cone

add_solid_cone(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_cone: a cone or frustum along its own Z, its base below (Project.add_solid_cone).

add_solid_sphere

add_solid_sphere(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_sphere: a sphere about its center (Project.add_solid_sphere).

add_solid_section

add_solid_section(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_section: a structural section along its own Z (Project.add_solid_section), its dimensions typed in the order core.solids.SECTIONS names them, or the opening ones when none are typed.

add_solid_plate

add_solid_plate(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_plate: a flat rectangle in its own XY plane, meshed later into shells (Project.add_solid_plate).

add_solid_disk

add_solid_disk(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_disk: a flat circle in its own XY plane, meshed later into shells (Project.add_solid_disk).

add_solid_hole

add_solid_hole(project: Any, params: dict[str, Any]) -> list[dict]

project.add_solid_hole: a hole entering at its center and running down its own Z, through when its depth is 0, counterbored when given one (Project.add_solid_hole); subtract it from a part to cut it.

edit_solid

edit_solid(project: Any, params: dict[str, Any]) -> list[dict]

project.edit_solid: a solid changed after it is made, only the fields typed (Project.edit_solid); a boolean it is part of changes with it, and a mesh made from it waits for Mesh Solids again.

move_solids

move_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.move_solids: parts moved whole, each with every solid it is made of, turned about the middle of their extent and then moved (Project.move_solids): Move Part, its gizmo's drag typed.

copy_solids

copy_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.copy_solids: solids copied, recipe and all, into the same geometry or another (Project.copy_solids): Copy and Paste on solid rows.

reorder_solids

reorder_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.reorder_solids: the parts, or one boolean's solids, put in a new order, every one of them named (Project.reorder_solids): the drag in the tree. A subtraction cuts the rest from the first.

combine_solids

combine_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.combine_solids: two or more parts made one by a union, a subtraction of the rest from the first, or an intersection (Project.combine_solids).

separate_solids

separate_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.separate_solids: booleans and patterns taken apart, the solids they were made of parts again (Project.separate_solids): Take Apart.

delete_solids

delete_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.delete_solids: solids deleted, each with every solid it is made of (Project.delete_solids); a mesh made from them stays.

pattern_solids

pattern_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.pattern_solids: parts copied in rows, columns and layers along X, Y and Z, the originals counted, as one solid whose copies follow them (Project.pattern_solids).

likely_size

likely_size(geometry: Any, ids: list[int], elements: str) -> float

The element size the parts ids are likely to hold at as elements, in meters: what Mesh's size opens on, and what its Detect button fills in.

mesh_solids

mesh_solids(project: Any, params: dict[str, Any]) -> list[dict]

project.mesh_solids: parts meshed into hexes, tetras or shells at an element size, each part an element group (Project.mesh_solids). There is no preview: meshing is quick, and a preview that meshed cost as much (Brandon, 2026-11-13). A union meshed in pieces takes a size per piece, typed or detected. A fitted brick mesh likely to fold (hexmesh.likely_to_fold) is refused, saying why, unless asked to mesh anyway. The size sets the time: a fine size on a large part is seconds to minutes.

mate_surfaces

mate_surfaces(project: Any, params: dict[str, Any]) -> list[dict]

project.mate_surfaces: a mate between two element groups, made or edited. A new mate (mate 0) is found where the groups' surfaces mate (Project.detect_mated_surfaces, core.mates.detect); a kept one (mate) opens on what it holds. The view draws the model see-through with the nodes each side may hold (core.mates.offered), those it holds bright, and a click adds a node of the side chosen or takes it away. With keep, the mate is added (Project.add_mated_surfaces), every patch found when patch is 0 and there are several, or the kept one saved (Project.edit_mated_surfaces).

delete_mated_surfaces

delete_mated_surfaces(project: Any, params: dict[str, Any]) -> list[dict]

project.delete_mated_surfaces: kept sets deleted by id (Project.delete_mated_surfaces).

set_view

set_view(project: Any, params: dict[str, Any]) -> list[dict]

project.set_view: the view a geometry opens on, where the eye is seen from the model's center and which way is up (Project.set_view with a View); an eye of 0, 0, 0 returns to the default isometric view. It is typed.