The initial torus is centered at (3, 0, 2), with axis parallel to z, major radius 1 and tube radius 0.22. The major radius is the radius of the circle through the tube's centers. It is a ring torus, including its interior.
Let A be the oriented line through (2, 0, 0) in direction (0, 0, 1). Define ℓ = 45°, α = 20° and h = 0.7071. Let B be the oriented line through q = (0, h cos ℓ, h sin ℓ), with unit direction u = (cos α, sin α cos ℓ, sin α sin ℓ).
At roll t, first turn the initial torus by 0.7t about A, then turn that result by 1t about B. Both angles use the same t; the second axis stays fixed in the world. Take the union of every occupied position for all real t from -100° to 100°, including both end poses. This is the continuous swept solid, not a finite union of sampled poses. Overlapped material is counted once; interior envelope sheets are not part of the boundary.
The other operand of the crossed union, intersection and difference. Only the observer turn changes sign from swept/tumbling-torus-crossed-forward.
No closed-form volume or area is asserted. The case remains unsettled until independently implemented kernels agree under the benchmark's rules.
Unsettled. This solid has no closed form, and no two kernels yet agree on it to 1e-8, so it has no answer to grade against. Below is what each kernel builds: built means a watertight, consistently oriented solid, whatever its measures; the table says which kernels agree with which.
Drawing
TopIsometricFrontRight
Third-angle projection, the three views at one scale. Drawn from cadrs's result, which passed.
† works around a missing feature. Pick an entry to see its solid, its measures and its code.
Drag to turn, scroll or pinch to zoom, right-drag to move. The solid as its STEP file has it, meshed in the browser by Open CASCADE (occt-import-js): each face colored by the kind of its surface, and the edges that bound each face drawn between them.
Drag to turn, scroll or pinch to zoom, right-drag to move. Black lines are where the surface turns sharply; red ones, seen through the solid, are open edges, where the mesh is not closed.
Time
17.1 s; CPU time 45.2 s; peak memory 1035.5 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Data
measured
volume
13.7898471844
area
66.7483902326
agrees with
no other kernel
faces
10 bspline, 5 torus
mesh
116704 triangles, closed
centre of gravity
(2.4371, 0.539221, 2.36288) its triangles
inertia
about it, of unit density: Ixx 28.5508; Iyy 29.7389; Izz 25.0985; Ixy 6.53023; Iyz -5.11002; Izx 6.79197
//! The reverse member of a crossed pair of torus sweeps. See cases/swept/tumbling-torus-crossed-reverse.md for the continuous solid.//!//! Swept by the kernel's road for a ring under a motion no constant twist takes//! (`swept::closed::ring`, through `crate::tumble`), which builds the half-turn, full-turn and thin//! tumbling tori; it refuses this one at run time in cad-kernel 0.21.0 (that road, #942, is still//! in progress): it cannot read the ring's contact curves at an instant of the roll as the//! first instant's (`Unbuilt::Curved`).usecrate::tumble::Tumble;
use cad_kernel::topo::Brep;
/// The sweep: its torus, its two turns and its roll.pubfntumble() -> Tumble {
Tumble {
centre: [3., 0., 2.],
hub: 2., tube: 0.22, ratio: 0.7,
lean: 45., heading: 20., height: 0.7071,
observer: -1., roll: [-100., 100.],
}
}
pubfnbuild() -> Result<Brep, String> {
tumble().build()
}
occt left no solid to show.
Time
627 ms; CPU time 626 ms; peak memory 356.5 MB
Notes
refused occt has no continuous solid sweep under two turns about different axes; its prism, revolution and pipe operations do not construct this torus envelope
"""Continuous torus tumble: the solid is defined in cases/swept/tumbling-torus-crossed-reverse.md.
Uses the same unavailable operation as the baseline tumbling-torus case. A union
of finitely many poses would change the solid and is not a valid workaround.
"""from bench importRefuseddefbuild():
raiseRefused("occt has no continuous solid sweep under two turns about different axes; ""its prism, revolution and pipe operations do not construct this torus envelope")
arris left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
kentron left no solid to show.
Time
2.1 ms; CPU time 1.9 ms; peak memory 8.3 MB
Notes
refused invalid input: a motion under which where it grazes the tool moves over it: its envelope is no product of a curve and the motion
//! The solid a torus fills as it tumbles: the torus centred at (3, 0, 2), axis parallel to the//! z axis, radii 1 and 0.22, turned by 0.7t about the vertical line through (2, 0, 0) and then by//! +t about the line through (0, h cos 45°, h sin 45°), h = 0.7071, along//! (cos 20°, sin 20° cos 45°, sin 20° sin 45°), for t from −100° to 100°.//!//! kentron's sweep of a solid (`sweep::solid`) under the tumble given by its places//! (`shared::swept::crossed_tumble`), which refuses it: the curves where the motion grazes the tool move over it, so its envelope is//! no product of a fixed curve and the motion, and kentron's sweep builds only those.usecrate::shared::swept::crossed_tumble;
use kentron::topology::{Model, Shape};
pubfnbuild(m: &mutModel) -> kentron::Result<Shape> {
crossed_tumble(m, 1.0)
}
vcad left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
solidcraft left no solid to show.
Time
1.4 ms; CPU time 1.2 ms; peak memory 4.7 MB
Notes
refused no layer (solidcraft-kernel, solidcore-ops, solidcore) has a sweep of a solid or an envelope: the tumbling torus's sweep is bounded by the envelope of its places, which no sweep of a profile makes
//! Refused. The torus moves by two turns about skew axes at once, so no line of it stays fixed and//! its sweep's boundary is an envelope of no simpler kind. solidcraft-kernel has no sweep of a//! solid and no envelope, and an envelope computed here would be geometry made outside the kernel.usecrate::Refusal;
usecrate::solids::Body;
pubfnbuild() -> Result<Body, Refusal> {
Err("no layer (solidcraft-kernel, solidcore-ops, solidcore) has a sweep of a solid or an envelope: the tumbling torus's sweep \
is bounded by the envelope of its places, which no sweep of a profile makes"
.into())
}
brepkit left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
popkern left no solid to show.
Time
3.4 ms; CPU time 3.2 ms; peak memory 11.4 MB
Notes
refused popkern has no sweep of a solid, and this sweep's wall is an envelope its other operations do not make
// The reverse member of a crossed pair of torus sweeps.//// Refused: popkern has no sweep of a solid (its sweeps carry a profile along a path), and this// one's boundary is an envelope of the moving solid that its other operations do not make.throw"popkern has no sweep of a solid, and this sweep's wall is an envelope its other operations do not make";
aetheris left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
next.BREP left no solid to show.
Time
827 ms; CPU time 826 ms; peak memory 13 MB
Notes
refused sweepSolid: the ring's grazing curves turn too fast
//! The reverse member of the crossed pair: `swept/tumbling-torus-crossed-forward` with the second//! turn by +t, through the kernel's `sweep_solid_tumbled`.usecrate::solids::swept::crossed_tumble;
usecrate::Refusal;
use brep_kernel::BrepSolid;
pubfnbuild() -> Result<BrepSolid, Refusal> {
crossed_tumble(1.0)
}
geop left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
Time
2.59 s; CPU time 9.37 s; peak memory 32.8 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Data
measured
volume
13.7898476377
area
66.7483901359
agrees with
no other kernel
faces
12 bspline, 2 torus
mesh
38690 triangles, closed
centre of gravity
(2.43684, 0.539881, 2.36236) its triangles
inertia
about it, of unit density: Ixx 28.4142; Iyy 29.601; Izz 24.9801; Ixy 6.50277; Iyz -5.08906; Izx 6.76243
not by the harness, which graded the runner's own measures instead: cannot measure: face #7895: the integral round a loop does not converge (a surface that folds or cusps there?)
//! The torus of `swept/tumbling-torus-crossed-forward` rolled the same way about the upright line,//! but turned by +t about the second line, t from −100° to 100°.//!//! Cadrs's sweep of a solid with the rigid motion of the two turns.usecrate::shared::swept::crossed_torus;
usecrate::Refusal;
use cadrs_kernel::{BodyId, DefaultKernel};
pubfnbuild(k: &mutDefaultKernel) -> Result<BodyId, Refusal> {
crossed_torus(k, 1.0)
}
smlib left no solid to show.
Time
It has not run.
Notes
missing no implementation
Data
No measures: it built no solid to measure.
Implementation
No implementation yet.
springrep left no solid to show.
Time
57 ms; CPU time 56 ms; peak memory 9.4 MB
Notes
refused unsupported: a sweep along a motion whose velocity changes on the body, of a torus that grazes along a whole meridian
//! The solid the torus about (3, 0, 2) (radii 1 and 0.22) fills as it turns by 0.7t about the//! upright line through (2, 0, 0) and by +t about a skew line, for t from −100° to 100°.use springrep::topo::Brep;
usecrate::shared::swept::crossed;
pubfnbuild() -> Result<Brep, String> {
crossed(1.0)
}
geomsolver left no solid to show.
Time
45 ms; CPU time 45 ms; peak memory 24.3 MB
Notes
refused error[E080]: `part`: native CAD boundary construction for continuous motion sweeps is not yet supported
// The reverse member of a crossed pair of torus tumbles: the torus centred at (3, 0, 2), its axis// along z, its tube (radius 0.22) 1 from that axis, turned 0.7 t about A, the upright line through// (2, 0, 0), and then +t about B, the line through q = (0, h cos 45, h sin 45), h = 0.7071, along u// = (cos 20, sin 20 cos 45, sin 20 sin 45). The part is the kernel's sweep of the torus as t runs// from -100 to 100 degrees, read as the torus turning about A seen from a frame turning -t about B.unit mm
use std
use std.solids
use std.place (above, right_of)
use std.motion (turns)
// the torus: its tube's circle drawn in the front plane, 1 out from its upright axis through// (3, 0, 2), turned about that axisin std.front {
private c := point
fix((3, 2)) c
private c_up := point
c_up above(d: 1mm) c
construction centerline torus_axis := line(c, c_up)
private tc := point
tc right_of(d: 1mm) c
private tube := circle(center: tc) hint(r: 0.22)
radius(0.22mm) tube
}
construction torus := solid(std.solids.Revolution(face(tube), about: torus_axis))
// A: the upright line through (2, 0, 0)private a_foot := point
fix((2, 0, 0)) a_foot
private a := axis
fix(dir == (0, 0, 1)) a
a_foot coincident a
// B: the line through q = (0, 0.7071 cos 45, 0.7071 sin 45)// along u = (cos 20, sin 20 cos 45, sin 20 sin 45)private q := point
fix((0, 0.7071 * cos(45deg), 0.7071 * sin(45deg))) q
private b := axis
fix(dir == (cos(20deg), sin(20deg) * cos(45deg), sin(20deg) * sin(45deg))) b
q coincident b
// the torus turns 0.7 t about A while the frame it is seen from turns -t about B, so seen from// that frame it is turned 0.7 t about A and then +t about Bprivate spin := frame
spin turns(0.7) a
private observer := frame
observer turns(-1) b
part := solid({ p | some t in (-100deg, 100deg): p in torus at(under: spin, seen_from: observer) t })
anvilcad left no solid to show.
Time
1.1 ms; CPU time 920 µs; peak memory 3.6 MB
Notes
refused anvil-brep has no sweep of a solid: a body tumbled by two turns at once sweeps envelopes of its surfaces that follow from no elementary construction, which it would have to compute itself
//! The reverse member of a crossed pair of torus sweeps.use anvil_brep::Solid;
pubfnbuild() -> Result<Solid, String> {
Err("anvil-brep has no sweep of a solid: a body tumbled by two turns at once sweeps envelopes of its surfaces that follow from no elementary construction, which it would have to compute itself".into())
}