A worm wheel's 30 teeth cut whole by its worm turning in mesh with it, as a hob cuts: a single-start worm of module 2 and pitch radius 10, the shafts square and 40 apart.
This is the last of five cases that cut a gear with its mate as the shafts move apart, from the straight bevel and the hypoid through the spiroid and the helicon. It uses the helicon's worm, and runs it beside the wheel's rim rather than over its face.
The blank is the disk of radius 32 about the z axis from z = −6 to z = 6.
The worm's axis is the line through (0, 40, 0) along the x axis. For a point p write x for its x coordinate, r for its distance from the worm's axis, and θ for its angle about the axis, right-handed about +x: (y − 40, z) = r·(cos θ, sin θ).
The tool is the worm's thread: the points with −20 ≤ x ≤ 20, 7.5 ≤ r ≤ 12.5 and |ξ| ≤ π/2 − (r − 10)·tan 20°, where ξ is x − θ reduced to the interval [−π, π) by a multiple of 2π. It is a right-hand thread of lead 2π, one start: its section by any plane through the axis is a row of trapezoids 2π apart (a rack of module 2), each π wide at radius 10, from radius 7.5 to 12.5, its sides 20° from square to the axis. Its ends are the planes x = ±20. The worm's core (r ≤ 7.5) never reaches the blank, so a worm with its core cuts the same.
The motion. The worm turns by t about its axis, right-handed about +x (from +y toward +z), while the wheel turns by t/30 about the z axis. Seen from the wheel, the worm at t is turned by t about its axis and then by −t/30 about the z axis. t runs from 0 to 60π: thirty turns of the worm and one of the wheel, after which each stands as it began. Cut from the blank everything the worm passes through, seen from the wheel. Its ends never reach the blank.
The thread is a screw's: turning it by α about its axis moves it by −α along it. So, seen from the wheel, the worm is a rack slid along its axis while the wheel turns, and the pitch line r = 10, z = 0 rolls on the wheel's pitch circle of radius 30: a planar motion, in the planes square to the z axis, of a tool that is no prism. In the mid-plane z = 0 the worm's section is a straight rack, so there the wheel's teeth are involutes of the circle of radius 30·cos 20°. Off it they lean with the thread, and the cut is deepest in the mid-plane, where the worm comes nearest.
where K is the blank, T the thread and W the worm's axis.
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 next.BREP'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.
cad-kernel left no solid to show.
Time
40.9 s; CPU time 128.8 s; peak memory 297.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
34429.3492828
area
10356.511098
agrees with
cadrs
centre of gravity
(-1.63781e-15, -1.37337e-15, 1.01847e-12) its STEP's solid
inertia
about it, of unit density: Ixx 8.38132e+06; Iyy 8.38132e+06; Izz 1.59199e+07; Ixy -3.58516e-05; Iyz -2.89617e-11; Izx -2.84899e-10
STEP
B-rep advanced faces, each on a surface AUTOMOTIVE_DESIGN
//! A worm wheel, the disc of radius 32 about the z axis from z = −6 to 6, hobbed whole by its//! single-start worm (lead 2π, pitch radius 10) on the line through (0, 40, 0) along x, from x = −20//! to 20: the worm turns by t about its axis while the wheel turns by t/30, t from 0 to 60π.//!//! The thread is its axial trapezoid screwed (`build::screwed`, exact), cut to its ends and placed.//!//! Refused by the kernel at run time. Seen from the wheel the worm's turn is no constant twist, and//! the kernel's sweep cut from a blank (`swept::closed::cut_from`) reads a tool under such a motion//! only as a convex solid of revolution (K2) or as all planes and lines (`swept::general`); the//! thread's helicoidal flanks are neither, and it is refused by what it is (`Unbuilt::Curved`).usecrate::gears::hobbed;
use cad_kernel::build::{disc, prism};
use cad_kernel::topo::Brep;
pubfnbuild() -> Result<Brep, String> {
let wheel = prism(&disc([0., 0., -6.], [0., 0., 1.], 32.), 0., 12.)?;
hobbed(&wheel, [0., 40., 0.], -20., 20.)
}
occt left no solid to show.
Time
626 ms; CPU time 625 ms; peak memory 356.7 MB
Notes
refused occt has no sweep of a solid under two turns about skew axes at once (or, the thread being a screw's, under a slide and a turn at once), and the wheel's flanks are the envelope of the thread's, which occt has no operation to find
"""A worm wheel hobbed by its worm. A worm wheel's 30 teeth cut whole by its worm turning in mesh with
it, as a hob cuts: a single- start worm of module 2 and pitch radius 10, the shafts square and 40
apart.
This is the last of five cases that cut a gear with its mate as the shafts move apart, from the
straight bevel and the hypoid through the spiroid and the helicon. It uses the helicon's worm, and
runs it beside the wheel's rim rather than over its face.
The blank is the disk of radius 32 about the z axis from z = −6 to z = 6.
The worm's axis is the line through (0, 40, 0) along the x axis. For a point p write x for its x
coordinate, r for its distance from the worm's axis, and θ for its angle about the axis, right-
handed about +x: (y − 40, z) = r·(cos θ, sin θ).
The tool is the worm's thread: the points with −20 ≤ x ≤ 20, 7.5 ≤ r ≤ 12.5 and |ξ| ≤ π/2 − (r −
10)·tan 20°, where ξ is x − θ reduced to the interval [−π, π) by a multiple of 2π. It is a right-
hand thread of lead 2π, one start: its section by any plane through the axis is a row of trapezoids
2π apart (a rack of module 2), each π wide at radius 10, from radius 7.5 to 12.5, its sides 20°
from square to the axis. Its ends are the planes x = ±20. The worm's core (r ≤ 7.5) never reaches
the blank, so a worm with its core cuts the same.
The motion. The worm turns by t about its axis, right-handed about +x (from +y toward +z), while
the wheel turns by t/30 about the z axis. Seen from the wheel, the worm at t is turned by t about
its axis and then by −t/30 about the z axis. t runs from 0 to 60π: thirty turns of the worm and one
of the wheel, after which each stands as it began. Cut from the blank everything the worm passes
through, seen from the wheel. Its ends never reach the blank.
The thread is a screw's: turning it by α about its axis moves it by −α along it. So, seen from the
wheel, the worm is a rack slid along its axis while the wheel turns, and the pitch line r = 10, z =
0 rolls on the wheel's pitch circle of radius 30: a planar motion, in the planes square to the z
axis, of a tool that is no prism. In the mid-plane z = 0 the worm's section is a straight rack, so
there the wheel's teeth are involutes of the circle of radius 30·cos 20°. Off it they lean with the
thread, and the cut is deepest in the mid-plane, where the worm comes nearest."""from bench importRefuseddefbuild():
# The thread occt could make (a pipe shell of the rack's trapezoid along a helix), but not what it# fills as it turns about its axis while the wheel turns: seen from the wheel it is a rack slid# along its axis while turned about the z axis, a motion none of occt's sweeps (a slide, a turn,# a path) makes, and the wheel's flanks are the envelope of the thread's under it.raiseRefused("occt has no sweep of a solid under two turns about skew axes at once (or, the ""thread being a screw's, under a slide and a turn at once), and the wheel's ""flanks are the envelope of the thread's, which occt has no operation to find")
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
1.3 ms; CPU time 1.1 ms; peak memory 3.8 MB
Notes
refused kentron's cut by a planar motion (`sweep::cut_by_motion`) takes only a prism square to the plane, and the worm's thread is no prism: its section changes with height, and the teeth's flanks are envelopes of the helicoid kentron has no operation to find
//! A worm wheel's 30 teeth cut whole by its single-start worm (module 2, pitch radius 10, axis//! through (0, 40, 0) along x) turning by t while the wheel, the disc of radius 32 from z = −6 to//! 6, turns by t/30, for t from 0 to 60π.//!//! Refused. Seen from the wheel the worm is a rack slid along its axis while the wheel turns, a//! planar motion, but of a thread, which is no prism: kentron's planar cut by a motion//! (`sweep::cut_by_motion`) takes only a prism square to the plane, the same at every height. The//! teeth's flanks, leaning off the mid-plane, are envelopes of the thread kentron cannot find.usecrate::Refusal;
use kentron::topology::{Model, Shape};
pubfnbuild(_m: &mutModel) -> Result<Shape, Refusal> {
Err(Refusal::from(
"kentron's cut by a planar motion (`sweep::cut_by_motion`) takes only a prism square to the \
plane, and the worm's thread is no prism: its section changes with height, and the \
teeth's flanks are envelopes of the helicoid kentron has no operation to find",
))
}
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.5 ms; CPU time 1.3 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 wheel's flanks are the envelope of the worm's thread as it slides along its axis while the wheel turns, which no sweep of a profile along a line, a screw, a revolve or a path makes
//! Refused. Seen from the wheel the worm is a rack slid along its axis while the wheel turns, and//! the wheel's flanks are the envelope of the thread's helicoid flanks over that motion, involutes//! only in the mid-plane. solidcraft-kernel has no sweep of a solid and no envelope, and its sweeps//! of a profile follow a line, a screw, a revolve or a path's own frame, none of which is this//! motion; 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 wheel's flanks are the \
envelope of the worm's thread as it slides along its axis while the wheel turns, which \
no sweep of a profile along a line, a screw, a revolve or a path 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.6 ms; CPU time 3.4 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
// A worm wheel hobbed by its worm.//// 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
6.29 s; CPU time 6.29 s; peak memory 136.1 MB
Notes
built A watertight, consistently oriented solid; the case has no settled answer yet to grade it against.
Workaround † no sweep of a solid for a thread under its generating motion
Data
measured
volume
34429.6676692
area
10355.1937615
agrees with
no other kernel
faces
30 bspline, 60 cylinder, 60 other
mesh
68248 triangles, closed
centre of gravity
(5.61339e-08, -6.27813e-09, 1.34552e-05) its triangles
inertia
about it, of unit density: Ixx 8.36118e+06; Iyy 8.36118e+06; Izz 1.58801e+07; Ixy -0.00277071; Iyz -0.000279109; Izx 0.00170179
not by the harness, which graded the runner's own measures instead: cannot measure: face #275799: a loop whose path on its surface breaks (an edge laid across a place where its surface meets itself?)
//! A worm wheel hobbed by its worm.//!//! The kernel's sweep of a screw thread under two turns (`solid_sweep_thread`), the wheel cut//! across its rim: the worm's thread (axis through (0, 40, 0) along x, lead 2π, pitch radius 10,//! π wide there, flanks 20°, radii 7.5 to 12.5, ends x = ±20), turned by t about its axis and then//! by −t/30 about the z axis for t from 0 to 60π, cut from the disk of radius 32 between z = −6 and//! z = 6. The kernel traces one tooth space on planes square to the wheel's axis, cuts it from the//! blank's wedge between two teeth and sews the 30 wedges: the sweep, its spaces and the wheel are//! all made inside it, from the case's data alone.usecrate::solids::p;
usecrate::Refusal;
use brep_kernel::solid_sweep_thread::{thread_wheel, RingBlank, ThreadTool};
use brep_kernel::{BrepSolid, TwoTurns};
use std::f64::consts::{FRAC_PI_2, PI, TAU};
pubfnbuild() -> Result<BrepSolid, Refusal> {
let axis = (p(0.0, 40.0, 0.0), p(1.0, 0.0, 0.0));
let thread = ThreadTool {
axis_point: axis.0,
axis_direction: axis.1,
// θ = 0 along +y, right-handed about +x.
reference: p(0.0, 1.0, 0.0),
lead: TAU,
pitch_radius: 10.0,
taper: 0.0,
half_width: FRAC_PI_2,
flank_tan: 20f64.to_radians().tan(),
tip: 2.5,
root: 2.5,
start: -20.0,
end: 20.0,
};
let motion = TwoTurns { axes: [axis, (p(0.0, 0.0, 0.0), p(0.0, 0.0, 1.0))], rates: [1.0, -1.0 / 30.0], from: 0.0, to: 60.0 * PI };
let blank = RingBlank { inner: 0.0, outer: 32.0, bottom: -6.0, face: 6.0, face_outer: 6.0 };
Ok(thread_wheel(&thread, &motion, &blank, 30)?)
}
geop left no solid to show.
Time
1.9 ms; CPU time 1.7 ms; peak memory 9.9 MB
Notes
refused geop sweeps a profile along a path, turning it with the path; it has no sweep of a solid through a motion, and the worm wheel's teeth are bounded by the envelope of the worm's thread as both turn, which geop cannot build
//! A worm wheel hobbed by its worm.//!//! geop sweeps a profile along a path, turning it with the path; it has no sweep of a solid//! through a motion, and the worm wheel's teeth are bounded by the envelope of the worm's thread//! as both turn, which geop cannot build.usecrate::{Bench, Refusal};
pubfnbuild(_: &mutBench) -> Result<(), Refusal> {
Err("geop sweeps a profile along a path, turning it with the path; it has no sweep of a \
solid through a motion, and the worm wheel's teeth are bounded by the envelope of the \
worm's thread as both turn, which geop cannot build"
.into())
}
Time
1.38 s; CPU time 3.71 s; peak memory 54.1 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
34429.3492212
area
10356.5110659
agrees with
cad-kernel
mesh
374640 triangles, closed
centre of gravity
(1.05396e-12, 1.20986e-10, -4.75068e-10) its STEP's solid
inertia
about it, of unit density: Ixx 8.38132e+06; Iyy 8.38132e+06; Izz 1.59199e+07; Ixy -0.00327958; Iyz 1.40293e-06; Izx 0.0264228
//! A worm wheel, the disk of radius 32 about the z axis from z = −6 to 6, hobbed whole by its//! single-start worm (lead 2π, pitch radius 10) on the line through (0, 40, 0) along x, from//! x = −20 to 20: the worm turns by t about its axis while the wheel turns by t/30, t from 0 to//! 60π.//!//! The thread is its axial trapezoid swept along a helix (cadrs's sweep, by the helix's screw//! motion), cut to its ends and placed; cadrs's cut by a moving tool under the two turns//! (`Kernel::cut_swept`, `SolidMotion::Rigid`): each tooth space two flanks the thread's flanks//! envelop, the root its crest envelops and the two fillets its crest's edges trace.usecrate::bench::{cylinder, p3, v3};
usecrate::shared::swept::hobbed;
usecrate::Refusal;
use cadrs_kernel::{BodyId, DefaultKernel};
pubfnbuild(k: &mutDefaultKernel) -> Result<BodyId, Refusal> {
let wheel = cylinder(k, p3(0.0, 0.0, -6.0), v3(0.0, 0.0, 1.0), 32.0, 12.0)?;
hobbed(k, wheel, p3(0.0, 40.0, 0.0), -20.0, 20.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
1.5 ms; CPU time 1.1 ms; peak memory 3.5 MB
Notes
refused springrep's sweep of a solid is exact only under a slide, a turn or a screw. The tooth (or thread) is carried by two turns at once, about the blank's axis and the mating one, so the space it cuts is bounded by envelopes of its flanks under that motion, which it cannot make exactly
//! A worm wheel's 30 teeth cut from the disc of radius 32 (z from −6 to 6) by its worm on the//! line through (0, 40, 0) along x, turning in mesh.use springrep::topo::Brep;
pubfnbuild() -> Result<Brep, String> {
Err("springrep's sweep of a solid is exact only under a slide, a turn or a screw. The tooth (or thread) is carried by two turns at once, about the blank's axis and the mating one, so the space it cuts is bounded by envelopes of its flanks under that motion, which it cannot make exactly".into())
}
geomsolver left no solid to show.
Time
418 ms; CPU time 1.14 s; peak memory 34.5 MB
Notes
refused error[E080]: `ends`: a shell of the arrangement is kept on one side of a plane (`endsfar`) and dropped on another: two of its cells joined round an edge
// A worm wheel's 30 teeth hobbed by its worm. The blank is the disc of radius 32 about z from// z = -6 to 6. The worm's axis is the line through (0, 40, 0) along x. Its thread is the// trapezoid of a module-2 rack tooth - pi wide at radius 10, from radius 7.5 to 12.5, its sides// 20 degrees from square to the axis - drawn in the half-plane through the axis toward +y and// carried up a right-hand screw of lead 2 pi about the axis (the kernel's sweep of a face up a// screw), kept between the planes x = -20 and 20. The worm turns t about its axis while the// wheel turns t/30 about z; the kernel's sweep of the thread as the wheel sees it, over thirty// turns of the worm, is cut from the blank.unit mm
use std
use std.solids (cut, common)
use std.place (coords)
use std.shapes
use std.motion (turns, screws)
in std.top {
private o := point
fix((0, 0)) o
private rim := circle(center: o) hint(r: 32)
radius(32mm) rim
}
part := solid(std.solids.Prism(face(rim), from: -6mm, to: 6mm))
// the worm's axis, and the half-plane through it toward +y the thread's section is drawn inprivate along := axis
fix(dir == (1, 0, 0)) along
private out := axis
fix(dir == (0, 1, 0)) out
section_plane := plane(u: along, v: out)
fix(origin == (0, 40, 0)) section_plane
in section_plane {
private w0 := point
private w1 := point
w0 coords(du: -1mm, dv: 0mm) section_plane
w1 coords(du: 1mm, dv: 0mm) section_plane
construction centerline worm_axis := line(w0, w1)
// the tooth: pi / 2 either side at radius 10, narrowing 2.5 tan 20 each way out to 12.5 and// widening as much in to 7.5private r0 := point
private r1 := point
private r2 := point
private r3 := point
r0 coords(du: -(pi / 2 + 2.5 * tan(20deg)) * 1mm, dv: 7.5mm) section_plane
r1 coords(du: (pi / 2 + 2.5 * tan(20deg)) * 1mm, dv: 7.5mm) section_plane
r2 coords(du: (pi / 2 - 2.5 * tan(20deg)) * 1mm, dv: 12.5mm) section_plane
r3 coords(du: -(pi / 2 - 2.5 * tan(20deg)) * 1mm, dv: 12.5mm) section_plane
private root := line(r0, r1)
private lead_flank := line(r1, r2)
private tip := line(r2, r3)
private trail_flank := line(r3, r0)
tooth := face(root, lead_flank, tip, trail_flank)
}
// the thread: the tooth carried up the screw past both ends, kept between x = -20 and 20
lead := frame
lead screws(2 * pi * 1mm) worm_axis
construction thread := solid({ p | some t in (-1440deg, 1440deg): p in tooth at(under: lead) t })
in std.side {
private m := point
fix((40, 0)) m
private span := std.shapes.CenteredRectangle(m, w: 40mm, h: 40mm)
}
construction ends := solid(std.solids.Prism(span.loop, from: -20mm, to: 20mm))
ends common thread
// the worm turning about its axis, the wheel a thirtieth as fast about z, and what the thread// passes through as the wheel sees it over thirty turns of the worm
worm := frame
worm turns(1) worm_axis
wheel := frame
wheel turns(1 / 30) std.z
construction hob := solid({ p | some t in (0deg, 10800deg): p in thread at(under: worm, seen_from: wheel) t })
hob cut part
anvilcad left no solid to show.
Time
1.2 ms; CPU time 990 µs; peak memory 3.6 MB
Notes
refused anvil-brep has no sweep of a solid and no helical curve: a body screwed along an axis sweeps envelopes of its surfaces under the screw, which it cannot make from its profile sweeps
//! A worm wheel hobbed by its worm.use anvil_brep::Solid;
pubfnbuild() -> Result<Solid, String> {
Err("anvil-brep has no sweep of a solid and no helical curve: a body screwed along an axis sweeps envelopes of its surfaces under the screw, which it cannot make from its profile sweeps".into())
}