Mesh BuildRegularSolid

From FreeCAD Documentation

Mesh BuildRegularSolid

Menu location
Meshes → Regular solid...
Workbenches
Mesh
Default shortcut
None
Introduced in version
-
See also
None

Description

The Mesh BuildRegularSolid command creates a regular parametric solid mesh object.

Usage

  1. There are several ways to invoke the command:
    • Press the Regular solid... button.
    • Select the Meshes → Regular solid... option from the menu.
  2. The Regular Solid dialog box opens.
  3. First select a mesh object type from the dropdown list:
    • Cube
    • Cylinder
    • Cone
    • Sphere
    • Ellipsoid
    • Torus
  4. Specify the required settings. The available settings depend on the mesh object type. See Properties.
  5. For meshes with curved surfaces: a higher Sampling value results in a finer mesh.
  6. Press the Create button to create the mesh object.
  7. Optionally create more mesh objects.
  8. Press the Close button to close the dialog box and finish the command.

Notes

  • Mesh objects created with this command are parametric. Whenever they are recomputed, for example after changing one of their parameters, their mesh is reconstructed. This means that manipulating them with commands such as Mesh RemeshGmsh, Mesh Scale etc. usually does not make sense.

Properties

Mesh objects created with this command inherit all Mesh Feature properties. In addition each mesh object type has a number of properties to control its parametric behavior:

Cube

Data

Cube

  • DataHeight (FloatConstraint): the height of the cube.
  • DataLength (FloatConstraint): the length of the cube.
  • DataWidth (FloatConstraint): the width of the cube.

Cylinder

Data

Base

  • DataClosed (Bool): if set to false, the planar ends of the cylinder are left open.
  • DataEdge Length (FloatConstraint): the edge length of the faces in the mesh.
  • DataLength (FloatConstraint): the length of the cylinder.
  • DataRadius (FloatConstraint): the radius of the cylinder.
  • DataSampling (IntegerConstraint): the number of faces along the curved surface.

Cone

Data

Base

  • DataClosed (Bool): if set to false, the planar end(s) of the cone are left open.
  • DataEdge Length (FloatConstraint): the edge length of the faces in the mesh.
  • DataLength (FloatConstraint): the length of the cone.
  • DataRadius 1 (FloatConstraint): the first radius of the cone. Can be 0.
  • DataRadius 2 (FloatConstraint): the second radius of the cone. Can be 0.
  • DataSampling (IntegerConstraint): the number of faces along the curved surface.

Sphere

Data

Base

  • DataRadius (FloatConstraint): the radius of the sphere.
  • DataSampling (IntegerConstraint): the number of faces along both directions of the curved surface.

Ellipsoid

Data

Base

  • DataRadius 1 (FloatConstraint): the first radius of the ellipsoid.
  • DataRadius 2 (FloatConstraint): the second radius of the ellipsoid.
  • DataSampling (IntegerConstraint): the number of faces along both directions of the curved surface.

Torus

Data

Base

  • DataRadius 1 (FloatConstraint): the first (main) radius the torus.
  • DataRadius 2 (FloatConstraint): the second radius of the torus.
  • DataSampling (IntegerConstraint): the number of faces along both directions of the curved surface.