Skip to content
SwaMitiस्व-मिती
Menu

Geometry and Mass Calculator for User Defined Shapes

Build custom 3D shapes and calculate volume, mass, centre of mass and section properties.

Usage guide

Build custom 3D shapes and calculate volume, mass, centre of mass and section properties. Read the steps below, or jump straight to the workspace.

Go to calculator

1. About this calculator

This visual shape builder suits parts made by extruding and cutting sketches: blocks, plates, brackets, stepped parts and profiles. Sketch on principal planes, offset planes or supported planar faces. Dimensions and constraints control profiles; applied features rebuild in order after earlier dimensions change.

Use 3D solid modeller · planes & faces for bodies that change along their length. Use Constant-section calculator for a cross-section extruded uniformly along Z. These are workflows within the same tool; material and unit settings do not need separate pages.

2. What you can calculate

  • Whole solid: volume, mass for one homogeneous density, centre of mass and connected regions.
  • Selected section: area, centroid, second moments and product of area, principal axes and elastic section moduli about section X, Y, principal axes or a custom angle.
  • Uniform extrusion: section properties, volume and mass in the constant-section workspace.

Use rectangles, circles and simple closed polygons. Join material, form through-holes or blind pockets, and apply supported straight-edge fillets or chamfers. This tool does not calculate structural capacity, plastic modulus, torsion or stress concentrations. Curved-face sketching, lofts and sweeps are unavailable.

3. Before you begin

  • Prepare dimensions and decide the supporting plane or face for each closed profile. Avoid self-intersections.
  • Choose mm, cm, m or in. Density is always in kg/m³; confirm the value for your material.
  • For section properties choose a cutting location and in-plane bending axis. A general body has different sections at different locations.
  • Use a modern browser with JavaScript and WebAssembly. Geometry stays on your device. Save an editable project before closing or reloading.

Read warnings before using results. Missing attachments and failed features need repair. A preview of earlier features is not the finished body.

4. How to use the calculator

Build the solid and calculate mass

  1. Open 3D solid modeller · planes & faces. Choose Block example or New empty model. Expand Project name, material and units and set units and density.
  2. Choose XY, YZ or XZ in Work plane, or use Select a planar face. The Available planar faces list provides an alternative to clicking. Set plane distance for an offset plane.
  3. Draw a rectangle, circle or closed polyline in local U/V. Click a dimension to enter its exact value, or expand Exact profile coordinates and dimensions. Use Driving dimensions and sketch constraints for supported relationships.
  4. Choose Extrude / join material or Cut material. Set Depth and Direction, then apply the feature. Set through-solid depth sets a finite depth covering the current body in that direction. Shorter cuts form blind pockets.
  5. Use New sketch / feature for later operations. Leave Keep new face selections attached checked when the sketch should follow its generating face. Select earlier items in Feature history to edit them. Applied driving dimensions regenerate dependent features; apply other pending edits to commit them.
  6. For edge treatments, use Select edges in 3D or Eligible straight edges. Choose Fillet with a radius, or Chamfer with an equal setback, then Apply edge feature. Missing references or unsupported sizes require repair.
  7. Read Evaluated solid properties. Use Save applied model for an editable project, Export solid Excel or Print solid report. Apply or cancel pending sketches before saving.

Calculate a selected cross-section

  1. Finish a valid solid. Scroll to Section plane and elastic section modulus.
  2. Choose XY, YZ, XZ or custom Section plane, then its position. A custom plane uses an origin, a nonzero normal and an in-plane X rotation. Choose an interior cut away from an exact material boundary.
  3. Choose Centroidal bending axis: Section X, Section Y, Principal 1, Principal 2 or Custom angle. Angles run counterclockwise from local section X.
  4. Click Calculate section. Inspect the slice diagram, world directions, axis comparison and positive/negative moduli. Use Show section plane in 3D to confirm the location.
  5. Once analysis is applied, plane/axis changes and earlier applied feature edits recalculate automatically. Use Export section Excel for its report or Remove analysis to clear it.

Use a constant cross-section

Choose Constant-section calculator. Load an example or Start empty. Draw profiles on XY, join material or cut through, then set Extrude along Z and density. Operations run in order: material added after a cutter can refill an opening. Openings extend through the whole extrusion; use the solid modeller for local pockets. Save project stores the editable section and Open project restores it.

5. Understanding the results

Whole-solid volume and centre of mass describe the final applied body. Section properties describe only the selected slice. Density changes mass, not geometric section properties. For one homogeneous material the volume centroid is the centre of mass.

ResultMeaningUnits
V and mVolume and masslength³ and kg
A and CSection area and centroid coordinateslength² and length
Ix, Iy, IxyCentroidal second moments and product of arealength⁴
I1, I2Maximum and minimum principal momentslength⁴
S+ and S−Elastic moduli on the two extreme-fibre sideslength³

Section X/Y are centroidal axes local to the plane. XY uses global X/Y; YZ uses global Y/Z; XZ uses global X/Z with normal −Y. Custom-plane world directions are displayed. Equal principal moments have no unique principal orientation.

Geometric moduli use I/c. For a non-principal axis, product-of-inertia coupling can rotate the neutral axis. The separately labelled moment-based moduli include this coupling for a bending moment about the chosen axis with zero moment about its perpendicular axis. Do not substitute geometric I/c into a general unsymmetric-bending calculation. Disconnected regions are geometric sums; structural composite action is not established.

6. Calculation method and formulas

The solid kernel evaluates ordered joins, cuts and edge treatments and integrates the final body. A selected section is sliced from that body, including holes. Constant-section mode instead integrates a 2D Boolean boundary and extrudes it uniformly. Overlapping material is counted once.

V = ∫ dV; m = ρV; r̄ = (1/V)∫ r dV.

Uniform extrusion: V = AL; centre of mass = (Cx, Cy, L/2).

Cx = (1/A)∫x dA; Cy = (1/A)∫y dA.

Ix = ∫(y−Cy)² dA; Iy = ∫(x−Cx)² dA; Ixy = ∫(x−Cx)(y−Cy) dA.

I1,2 = (Ix+Iy)/2 ± √[((Ix−Iy)/2)² + Ixy²].

Iθ = Ix cos²θ + Iy sin²θ − 2Ixy sinθ cosθ; S± = Iθ/c±.

ρ is uniform density, L is extrusion length, r is a point in the body and r̄ is its volume centroid. Section x/y are local coordinates; Cx/Cy are the area centroid. θ is the selected axis angle from local X; c± are positive distances to extreme fibres perpendicular to that axis. I1 is the larger principal moment.

For coupled bending, let u be the selected centroidal axis and v its perpendicular, 90° counterclockwise. Set I = ∫v²dA, J = ∫u²dA, K = ∫uv dA and D = IJ−K². The stress-per-unit-moment factor is g(u,v) = (Jv−Ku)/D. Moment-based moduli are 1/max(g) and −1/min(g). For K = 0 they reduce to I/c±. These are homogeneous linear elastic geometric properties.

Before multiplying by ρ in kg/m³, convert V to m³: divide mm³ by 10⁹, divide cm³ by 10⁶, or multiply in³ by 0.0254³. For a rectangle of width b and height h: A = bh, Ix = bh³/12 and Iy = hb³/12.

References: Manifold solid and slice API; polygon-clipping boundary operations; BYU mechanical design notes on bending. Signed boundary integration uses Green’s theorem and centroidal moments use the parallel-axis theorem.

7. Worked example

Open the solid workspace, click Block example, and confirm mm and density 7850 kg/m³. The block is 120 × 80 × 40 mm, starting at global (0,0,0).

  1. V = 120 × 80 × 40 = 384,000 mm³ = 0.000384 m³. Mass = 3.0144 kg. Centre of mass = (60,40,20) mm.
  2. Choose XY at global Z = 20 mm and Section X, then Calculate section. Area = 9600 mm²; local centroid = (60,40) mm; global centroid = (60,40,20) mm.
  3. Ix = 120 × 80³/12 = 5,120,000 mm⁴. Both X-side moduli = Ix/40 = 128,000 mm³.
  4. Choose Section Y. Iy = 80 × 120³/12 = 11,520,000 mm⁴. Both Y-side moduli = Iy/60 = 192,000 mm³. Ixy = 0, so geometric and moment-based values agree. Principal 1 is parallel to section Y.

Optional pocket check: select the top face at Z = 40 mm. Draw a radius-10 mm circle centred at global (60,40,40), converting to local sketch coordinates using the displayed plane frame. Cut 10 mm opposite the outward normal and apply. Expected V = 384,000−π × 10² × 10 = 380,858.407346 mm³, mass ≈ 2.989738498 kg and centre of mass ≈ (60,40,19.876269267) mm. Circular approximations cause small last-digit differences. At Z = 20 mm the section remains a rectangle; at Z = 35 mm it contains the hole.

8. Assumptions and limitations

  • One homogeneous density. No transformed multi-material sections, stress, deformation, plastic modulus, torsion, connection stiffness or design-code capacity checks.
  • Principal/offset planes and supported planar faces only. No curved-face wrapping, lofts, sweeps or general freeform surfaces.
  • Fillets use constant radii on supported straight convex edges; chamfers use equal setbacks. Curved or concave edges, variable radii and complex intersecting corner blends are excluded. Excessive sizes are rejected.
  • Face and edge references follow their generating geometry. Missing or ambiguous supports require explicit repair. Detach a sketch only when its current plane should stay fixed.
  • Solid limits: 16 features, 24,000 input boundary vertices, 200,000 output triangles and a 30-second rebuild limit. The bounded sketch solver is not a complete CAD constraint system. Constant sections allow 32 objects and 64 vertices per polygon.
  • Curves are polygon approximations: solid rebuilds compare 1024/512 segments; constant sections compare 2048/1024 segments. Checked properties must agree within 0.01%. Convergence is not a certified error bound for every geometry or real-world measurement.
  • Empty/tangent sections and planes coincident with material boundaries require repositioning. Section area, moments and reported axis moduli undergo an independent convergence check.
  • Apply or cancel pending geometry before saving or reporting. Excel contains values, not live formulas. Keep the editable JSON separately. No model upload, cookies or browser storage is used; reloading clears unsaved work.

For independent standard shapes use the Geometry & Mass Calculator. Related calculators appear after this workspace.

Start using the calculator

Build your shape and calculate its properties

Back to usage guide

Loading the local shape workspace…

Was this useful?

Found an issue or have an idea for another engineering calculator?