Problemadvanced
Swept volume computation
Also called swept volume.
Compute the region a solid occupies as it moves along a path, as in machining simulation, collision checks and the design of moving parts.
A solid that moves fills a region of space: the union of all the places it occupies during the motion. That region is its swept volume. Machining simulation subtracts the swept volume of the tool from the stock, collision checking asks whether the swept volume of a moving part meets an obstacle, and designers of mechanisms use swept volumes to find the space a moving arm needs. The problem is to compute a representation of this region from the solid and the motion. When the solid only translates, the swept volume is a Minkowski sum, and this is the easy case. When it also rotates, the boundary of the swept volume lies on the envelope of the moving boundary, where the velocity of the moving point is tangent to the surface, and the computation needs that condition. This page is about the region in three dimensions, or in the plane. The sweep surface page covers a different object: the surface swept by a curve.
In plain words
Hold a box and move it through the air along some path, turning it as you go. The swept volume is all the space the box touched at any moment.
If the box only slides without turning, the swept volume is easy: for a straight slide it is the box stretched along the direction of the slide. If it turns, the outline of the swept volume is made of the parts of the box surface that were moving sideways, along the surface, at that moment. Parts of the surface that move straight out of the box or straight into it stay inside the swept volume.
In a machine shop, the moving box is a cutting tool, and the swept volume of each move is the material it removes.
Definition
Input.
- A solid (or ): compact and equal to the closure of its interior, given as a boundary representation, a mesh, an implicit function, or a primitive such as a ball, a cylinder or a cutter.
- A motion: a continuous map of rigid motions, , given as a path of the reference point and of the orientation, for example a sequence of tool positions with an interpolation rule.
Output. A representation of
within a given tolerance, in a stated form: a boundary representation, a mesh, an implicit function, or samples on lines or cells.
Translations. If for all , then
because for and is exactly the set of sums with . For a straight move with , is the segment from to , and for a convex the swept volume is the convex hull of and . A ball of radius moved along a segment sweeps a capsule.
The envelope condition. Suppose is smooth with outward unit normal , and is differentiable. For write , for the normal of the moved surface at , and for the velocity of the moving point. Then every boundary point of has the form with and
- or , or
- and .
Sketch. Let lie on the boundary of the swept volume. If were an interior point of , a neighborhood of would be inside , so . Suppose and : the surface point moves outward. The points just inside near are in the swept volume, and the points just outside are covered by for small , because the surface near moves past them. By continuity this holds on a whole neighborhood of , which is then inside the swept volume, a contradiction. The case is the same with .
The points with form, for each , a curve on the moved surface, the characteristic curve, and these curves together form the envelope. The condition is necessary, not sufficient: parts of the envelope can lie inside the swept volume, covered by the solid at another time, and must be trimmed away.
Variants
- Translation only. A Minkowski sum with the path. For polyhedra and straight moves, the swept volume of a convex polyhedron is a convex hull of two copies.
- General rigid motion. The envelope condition, with trimming of the inner parts. Wang and Wang (1986) used it for NC tools.
- Tool moves. The solid is a surface of revolution about its axis, which simplifies the envelope: for a ball, the swept volume of a straight move is a capsule, and for a cylinder moved along its axis it is a longer cylinder.
- Sampled. Only the trace of the swept volume on a set of lines or cells, as in the z-map and the dexel models. It is exact on the samples for simple tools and moves.
- Deforming solids. The shape of changes in time. Not covered here.
Examples
A square translated. moved by . The swept area is the segment from to , the hexagon with vertices , , , , , . Its area is : the square has area , and the segment adds its length times the width of the square across the direction of motion, . The two new edges, from to and from to , are traced by the corners and , the points where the direction of motion is tangent to the square.
A square turned. turned about the origin from to degrees. At angle the square covers the polar angles from to , and its diagonal of length points at . So the swept area is the first square, the last square , and the sector of radius between the polar angles and , which the far corner traces. The sector has area , and each square adds a triangle of area outside it, so the swept area is . The arc is on the envelope: the velocity of the far corner is tangent to its circle. The edges of the two squares on the axis come from and .
A ball move. A ball of radius whose center moves straight from to sweeps the capsule of points at distance at most from the segment . Its envelope is the cylinder of radius about the segment, and the half spheres at the two ends come from and .
Known algorithms
- Minkowski sums. For translations, the algorithms of the Minkowski sum page: a merge of edge directions for convex polygons (Minkowski sum of convex polygons), and decomposition into convex pieces and a union for the rest.
- Envelope methods. Solve for the characteristic curves at a set of times, join them into a surface, add the start and end positions, and trim the inner parts. Exact for primitives such as tools, approximate in general. The survey of Abdel-Malek, Yang, Blackmore and Joy (2006) lists these methods, including the ones based on the rank of the Jacobian of the map and on a differential equation for the sweep.
- Union of samples. Take positions at times and the union of with solid Boolean operations or on a sampled model. It misses the parts between the samples, so the error depends on the step.
- Sampled models. For machining, the z-map and dexel models compute the trace of the swept tool on each line by a closed form for simple tools, with no B-rep at all.
- Distance fields. Represent the swept volume implicitly by , and extract a surface with marching cubes. Approximate, with the error of the grid.
What is proved: the Minkowski sum identity for translations and the envelope condition. What is measured: the speed and the accuracy of the sampling and the distance field methods, which depend on the step and the grid.
Bounds
- Convex polygon, straight move. For a convex polygon with vertices, the swept area is a convex polygon with at most vertices, computed in time from the two copies.
- Polygon along a polyline. For a polygon with vertices translated along a polyline with segments, the swept area is the Minkowski sum of the polygon and the polyline, with the size bounds of the Minkowski sum page.
- Rotations. The envelope of a polyhedron under a motion with rotation is made of ruled and curved patches whose number depends on the motion, so no bound in alone holds without a model of the motion. This page gives none.
Reductions
- Translation to Minkowski sum. Shown above.
- Motion planning. A robot moved by collides with an obstacle if and only if (with interiors for touching). For translations this is the test of whether the path meets the configuration space obstacle .
- Machining. NC verification subtracts the swept volumes of the tool from the stock.
Applications
- Machining simulation and NC verification, with the tool as the moving solid.
- Collision and clearance checks for robots, assembly paths and the moving parts of a machine.
- Design of mechanisms, where the swept volume of a link is the space it needs.
- Modeling by sweeping: a designer moves a simple solid to create a shape, as in the sweeps of CAD systems.
References
- K. Abdel-Malek, J. Yang, D. Blackmore and K. Joy, Swept volumes: fundation, perspectives, and applications, International Journal of Shape Modeling 12(1), 2006, 87 to 127, the survey of the definitions, the envelope conditions and the methods (the word fundation is spelled this way in the printed title)
- W. P. Wang and K. K. Wang, Geometric modeling for swept volume of moving solids, IEEE Computer Graphics and Applications 6(12), 1986, 8 to 17, the envelope of a moving solid from the condition that the velocity is tangent to its boundary, applied to NC tools
- Robert O. Anderson, Detecting and eliminating collisions in NC machining, Computer-Aided Design 10(4), 1978, 231 to 237, the region of the tool over a move, represented by heights over a grid
- Mark de Berg, Otfried Cheong, Marc van Kreveld and Mark Overmars, Computational Geometry, Algorithms and Applications, 3rd edition, Springer, 2008, Chapter 13, Robot Motion Planning, Section 13.3 on Minkowski sums of convex polygons and their size
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag K7GNZA Edit this page History Report an error Markdown