The initial torus is centered at (3, 0, 2), with axis parallel to z, major radius 1 and tube radius 0.015. 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°, α = 0° and h = sqrt(0.5). 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.25t 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 -75° to 75°, 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.
Thin material under compound motion; only the tube radius changes from swept/tumbling-torus. The tube radius remains strictly positive.
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
35.5 s; CPU time 64.6 s; peak memory 153 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Its volume and area are its STEP file's, as the harness measures them from the file's exact geometry (harness/mass/); its triangles are Open CASCADE's mesh of the file, for the pictures.
Data
its STEP's
volume
0.696302794188
area
46.7141529838
agrees with
next.BREP
centre of gravity
(2.98209, 0.00300263, 1.44195) its STEP's solid
inertia
about it, of unit density: Ixx 1.50426; Iyy 0.689476; Izz 1.32743; Ixy 0.00270678; Iyz -0.256646; Izx -0.0072418
STEP
B-rep advanced faces, each on a surface AUTOMOTIVE_DESIGN
//! A thin torus tumbled through space. See cases/swept/tumbling-torus-thin.md for the continuous solid.usecrate::tumble::Tumble;
use cad_kernel::topo::Brep;
pubfnbuild() -> Result<Brep, String> {
Tumble {
centre: [3., 0., 2.],
hub: 2., tube: 0.015, ratio: 0.25,
lean: 45., heading: 0., height: 0.5_f64.sqrt(),
observer: 1., roll: [-75., 75.],
}.build()
}
occt left no solid to show.
Time
622 ms; CPU time 621 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-thin.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 thin torus fills as it tumbles: the torus centred at (3, 0, 2), axis parallel to the//! z axis, radii 1 and 0.015, turned by t/4 about the vertical line through (2, 0, 0) and then by//! −t about the line through (0, 0.5, 0.5) parallel to the x axis, for t from −75° to 75°.//!//! The motion is given by its places (`shared::swept::tumble`, a `sweep::RigidMotion::Carried`)//! for kentron's sweep of a solid (`sweep::solid`), 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::bench::{frame, p};
usecrate::shared::swept::tumble;
use kentron::math::{Axis, Direction};
use kentron::primitives::Torus;
use kentron::sweep;
use kentron::topology::{Model, Shape};
pubfnbuild(m: &mutModel) -> kentron::Result<Shape> {
let tool = Torus::new(1.0, 0.015).with_frame(frame(p(3.0, 0.0, 2.0), Direction::Z)).build(m)?;
let first = Axis::new(p(2.0, 0.0, 0.0), Direction::Z);
let motion = tumble(first, 0.25, Axis::new(p(0.0, 0.5, 0.5), Direction::X), -1.0, -75.0, 75.0);
sweep::solid(m, tool, &motion)
}
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.6 ms; CPU time 1.3 ms; peak memory 4.4 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.5 ms; CPU time 3.3 ms; peak memory 11.5 MB
Notes
refused popkern has no sweep of a solid, and this sweep's wall is an envelope its other operations do not make
// A thin torus tumbled through space.//// 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.
Time
445 ms; CPU time 445 ms; peak memory 24.2 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Its volume and area are its STEP file's, as the harness measures them from the file's exact geometry (harness/mass/); its triangles are Open CASCADE's mesh of the file, for the pictures.
Data
its STEP's
volume
0.696302799153
area
46.7141529559
agrees with
cad-kernel
centre of gravity
(2.98209, 0.00300259, 1.44195) its STEP's solid
inertia
about it, of unit density: Ixx 1.50426; Iyy 0.689476; Izz 1.32743; Ixy 0.00270679; Iyz -0.256646; Izx -0.00724178
STEP
B-rep advanced faces, each on a surface AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF
//! A thin torus tumbled through space, through the kernel's sweep of a solid of revolution tumbled//! by two turns about skew axes (`sweep_solid_tumbled`): `swept/tumbling-torus` with tube radius//! 0.015.usecrate::solids::swept::tumbled_torus;
usecrate::Refusal;
use brep_kernel::BrepSolid;
pubfnbuild() -> Result<BrepSolid, Refusal> {
tumbled_torus(0.015, 0.25, -1.0, 0.5f64.sqrt(), 45.0, 0.0, -75.0, 75.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
514 ms; CPU time 1.67 s; peak memory 16.7 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Data
measured
volume
0.696302850288
area
46.7141528214
agrees with
no other kernel
faces
8 bspline, 2 torus
mesh
49814 triangles, closed
centre of gravity
(2.98203, 0.00253776, 1.44193) its triangles
inertia
about it, of unit density: Ixx 1.50237; Iyy 0.688926; Izz 1.32585; Ixy 0.00259591; Iyz -0.256598; Izx -0.0072873
not by the harness, which graded the runner's own measures instead: cannot measure: face #3541: a loop whose path on its surface breaks (an edge laid across a place where its surface meets itself?)
//! The torus of `swept/tumbling-torus` (center (3, 0, 2), axis along z, major radius 1) with a tube//! of radius 0.015, rolled for t from −75° to 75°: turned by 0.25t about the upright line through//! (2, 0, 0), then by −t about the line through (0, ½, ½) along x.//!//! Cadrs's sweep of a solid with the rigid motion of the two turns.usecrate::shared::swept::tumbling_torus;
usecrate::Refusal;
use cadrs_kernel::{BodyId, DefaultKernel};
pubfnbuild(k: &mutDefaultKernel) -> Result<BodyId, Refusal> {
usecrate::bench::p3;
tumbling_torus(k, p3(3.0, 0.0, 2.0), 0.015, (45.0, 0.0, 0.5f64.sqrt()), 0.25, -1.0, (-75.0, 75.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.
Time
5.66 s; CPU time 5.66 s; peak memory 277.5 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Its volume and area are its STEP file's, as the harness measures them from the file's exact geometry (harness/mass/); its triangles are Open CASCADE's mesh of the file, for the pictures.
Data
its STEP's
volume
0.604567106662
area
46.4787812801
agrees with
no other kernel
centre of gravity
(2.94443, 0.0668116, 1.38903) its STEP's solid
inertia
about it, of unit density: Ixx 1.49916; Iyy 0.730862; Izz 1.31141; Ixy 0.00576011; Iyz -0.22075; Izx -0.126147
STEP
B-rep advanced faces, each on a surface AUTOMOTIVE_DESIGN
//! The solid the torus about (3, 0, 2) (radii 1 and 0.015) fills as it tumbles about two skew//! axes, for t from −75° to 75°.use springrep::topo::Brep;
usecrate::shared::swept::{deg, tumbled, tumbling, v3};
pubfnbuild() -> Result<Brep, String> {
tumbled(v3(3.0, 0.0, 2.0), 0.015, &tumbling(deg(-75.0), deg(75.0)))
}
geomsolver left no solid to show.
Time
45 ms; CPU time 45 ms; peak memory 24.1 MB
Notes
refused error[E080]: `part`: native CAD boundary construction for continuous motion sweeps is not yet supported
// A thin torus tumbled through space: the torus centred at (3, 0, 2), its axis along z, its tube// (radius 0.015) 1 from that axis, turned 0.25 t about A, the upright line through (2, 0, 0), and// then -t about B, the line through (0, sqrt(0.5) cos 45, sqrt(0.5) sin 45) along x. The part is// the kernel's sweep of the torus as t runs from -75 to 75 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.015)
radius(0.015mm) 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, sqrt(0.5) cos 45, sqrt(0.5) sin 45)// along u = (1, 0, 0)private q := point
fix((0, sqrt(0.5) * cos(45deg), sqrt(0.5) * sin(45deg))) q
private b := axis
fix(dir == (1, 0, 0)) b
q coincident b
// the torus turns 0.25 t about A while the frame it is seen from turns t about B, so seen from// that frame it is turned 0.25 t about A and then -t about Bprivate spin := frame
spin turns(0.25) a
private observer := frame
observer turns(1) b
part := solid({ p | some t in (-75deg, 75deg): p in torus at(under: spin, seen_from: observer) t })
anvilcad left no solid to show.
Time
1.1 ms; CPU time 930 µs; peak memory 3.4 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
//! A thin torus tumbled through space.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())
}