SwaMiti Surface Development Tool - CONEDEV2
Eccentric conical frustum with adjustable offset
Visit www.swamiti.com for more

CONTENTS
  CONEDEV2.lsp
  README.txt

USE IN AUTOCAD
1. Extract the ZIP and open a test drawing in model space.
2. APPLOAD CONEDEV2.lsp.
3. Run CONEDEV2. All lengths are millimetres; angles are degrees.
4. Follow the input definitions below. Enter accepts the sample defaults.
5. Pick the drawing point. Use ZOOM, Extents to see the result.
6. One UNDO removes a completed run. Esc cancels an input.
7. Rerun after changing inputs: dimensions are non-associative.

ARRANGEMENT AND DIMENSIONS
Develop a circular-ended eccentric frustum with parallel end planes, internal diameters and an independently adjustable centre offset.
d1 is the small INTERNAL diameter, d2 is the large INTERNAL diameter and h is the perpendicular distance between the parallel end planes. Thickness t is measured normal to the wall, rather than radially. The small circle centre is displaced by E in the +X direction relative to the large circle centre.
The mean surface is formed by offsetting the inside cone by t/2 along the local outward normal, then trimming it at the SAME end planes. These plane datums are essential to the thickness correction.
Keep the end-plane datums fixed. The mean surface is the inside cone offset by t/2 and then trimmed at the same two planes. The default offset gives one vertical side.

INPUTS
| Symbol | Definition | Sample | Range
 | d1 | Small INTERNAL diameter | 1,000 mm | > 0
 | d2 | Large INTERNAL diameter | 2,000 mm | d2 > d1
 | h | Perpendicular spacing between parallel end planes | 1,000 mm | > 0
 | t | Thickness NORMAL to local wall | 10 mm | > 0
 | E | Horizontal offset between internal end-circle centres | 500 mm | ≥ 0; mean surface must remain before its apex

PLACEMENT
Pick the lower-left corner of the blank’s bounding rectangle. This point need not lie on a cutting edge.

CALCULATION METHOD
1Choose the offset and identify each generator
Δ = (d2 − d1)/2;   r1 = d1/2
Edefault = Δ
D(φ) = (Δ cos φ − E, Δ sin φ, −h)
ℓ(φ) = √[h² + Δ² + E² − 2ΔE cos φ]
φ is inside-circle azimuth measured from +X towards the offset. The sample default E = 500 mm gives one vertical side. E = 0 gives a concentric cone; other nonnegative offsets are supported if the mean-surface trim remains valid. The shortest generator is at φ = 0 and the longest at φ = π.

2Calculate the local outward normal
Q(φ) = Δ − E cos φ
W(φ) = √[h² + Q(φ)²]
n(φ) = (h cos φ, h sin φ, Q)/W
The unit normal is constant along each generator but changes around the cone. A constant addition to both diameters cannot represent this varying normal-offset surface. Its trimmed mean rims are generally not circles.

3Trim the normal offset at the fixed planes
Let a = t/2 and z be either fixed end-plane coordinate (0 or h). Begin from the inner cone at z′ = z − a nz, then offset that point by a n so that the result lies on the required z plane:
r(z′) = d2/2 − Δz′/h
Pm(φ,z) = (Ez′/h + r(z′)cos φ,
  r(z′)sin φ, z′) + a n(φ)
The two mean end points on a ruling receive the same transverse correction. Their separation remains ℓ(φ). This is the fixed-plane mid-thickness model used by the LISP.

4Integrate the developed ruling direction
The flat mean surface is constructed numerically rather than assigned a common sector centre. Let β be the developed ruling direction and w the planar image of the changing normal offset:
dβ/dφ = ΔW/ℓ²
c(φ) = hℓ/W²
dw/dφ = c(−sin β, cos β)
Starting from β = 0 and w = (0,0) at φ = 0, the program integrates these equations with fourth-order Runge–Kutta steps. This preserves the generator and circumferential metric of the offset surface numerically.

5Construct the two flat rim curves
u = (cos β, sin β)
ρ = [r1/Δ + a nz/h]ℓ
A(φ) = ρu + aw
B(φ) = A(φ) + ℓu
A and B are the small and large mean-rim points in the flat pattern. Their difference has exactly the required generator length ℓ. Joining their sampled curves and two straight seam edges gives the cutting outline; there is generally no pair of circular developed radii.

6Refine the outline and mark the setting-out stations
The numerical mesh starts at 180 intervals and doubles. It accepts the finer result only when midpoint chord deviation is at most 0.01 mm, coincident coarse/fine point difference is at most 0.0005 mm, and each mean-rim length changes by at most 0.01 mm. Failure to meet these checks by 5,760 intervals stops drawing creation.
The sample uses 1,440 calculation intervals. The 18 marked divisions remain equal 20° azimuth steps around the INPUT inside circles. They are not equal flat angles or equal mean-rim arc pitches. These numerical criteria are not manufacturing tolerances.

SAMPLE RESULTS
Shortest seam generator: 1,000.00 mm - Offset direction, φ = 0°
Longest generator: 1,414.21 mm - Opposite direction, φ = 180°
Small mean rim length: 3,178.117 mm - Numerical curve length
Large mean rim length: 6,319.710 mm - Numerical curve length

ASSUMPTIONS AND LIMITATIONS
- True straight-sided circular-ended cone, with d2 > d1 > 0, h > 0 and t > 0.
- Both end planes are parallel; diameters refer to the inside surface at those planes.
- The mean surface is a local normal offset t/2, trimmed at the same plane coordinates.
- E ≥ 0; offset direction is fixed to +X for the reference view.
- The trimmed mean surface must remain before the virtual apex; extreme invalid thickness/offset combinations are rejected.
- Mean rims are generally noncircular; 18 azimuth divisions do not imply equal mean-rim arc pitches.
- Weld gaps, seam overlap, trimming margins and cutting kerf.
- Rolling stretch, springback, weld shrinkage and material-specific forming compensation.
- Full-thickness bevels, inclined end planes, curved side profiles and solid-model output.

The LISP is standalone; the SwaMiti logo is embedded. No preview image or helper file is needed.
