Creates a new HollowTruncatedCone geometry.
Configuration options.
Protected_Cached bounding volume to prevent re-allocation
Protected_The indices of the geometry for indexed rendering.
Protected_Whether the geometry is purely line-based.
Protected Optional_Optional skinning joints (4 IDs per vertex).
Protected_The normals of the geometry (nx, ny, nz).
Protected_The tangents of the geometry (tx, ty, tz).
Protected_The UV coordinates of the geometry (u, v).
Protected_The vertices of the geometry (x, y, z).
Protected Optional_Optional skinning weights (4 weights per vertex).
Protected_The indices for wireframe rendering.
Total height (h).
Number of height subdivisions.
Inner radius at the bottom base (S).
Inner radius at the top cap (s).
Whether the cone ends are open (no caps).
Outer radius at the bottom base (R).
Outer radius at the top cap (r).
Number of radial subdivisions.
Central angle in radians.
Start angle in radians.
Protected_Helper method to create an appropriately sized index array. Automatically chooses between 16-bit and 32-bit indices based on vertex count.
The number of indices needed.
A Uint16Array or Uint32Array.
Applies a Matrix4 transformation to all geometry vertices in-place.
The transformation matrix.
this
Computes the normals of the geometry using the current vertices and indices. Averages normals for shared vertices.
Computes the tangents of the geometry based on normals and UVs. Required for normal mapping.
Computes the wireframe indices (line-segments) from the current triangle topology.
ProtectedgenerateGenerates the raw geometry data. Must be implemented by subclasses.
Calculates the bottom base annular cap area $A_{\text{bottom}} = \frac{\theta_{\text{len}}}{2\pi} \cdot \pi (R^2 - S^2)$.
Returns a bounding volume that encapsulates this geometry.
The bounding volume.
Returns the raw geometry data ready for GPU upload.
The geometry data interface.
Calculates the inner lateral area $M_{\text{inner}}$.
Calculates the inner slant height $m_{\text{inner}} = \sqrt{(S - s)^2 + h^2}$.
Calculates the outer lateral area $M_{\text{outer}}$.
Calculates the outer slant height $m_{\text{outer}} = \sqrt{(R - r)^2 + h^2}$.
Calculates the surface-to-volume ratio $A / V$.
Calculates the top cap annular area $A_{\text{top}} = \frac{\theta_{\text{len}}}{2\pi} \cdot \pi (r^2 - s^2)$.
Calculates the total surface area.
Calculates the volume $V = \frac{\theta_{\text{len}}}{2\pi} \cdot \frac{\pi h}{3} (R^2 + R r + r^2 - S^2 - S s - s^2)$.
Rotates the geometry vertices around the X-axis in-place.
The rotation angle in radians.
this
Rotates the geometry vertices around the Y-axis in-place.
The rotation angle in radians.
this
Rotates the geometry vertices around the Z-axis in-place.
The rotation angle in radians.
this
Scales the geometry vertices in-place.
The scale factor.
this
A HollowTruncatedCone (Hohlkegelstumpf / Truncated Hollow Cone) geometry.
A conical frustum with a coaxial inner conical frustum carved out, forming a hollow cone with outer mantle, inner mantle, and two annular circular caps (Kreisringe).
Mathematical formulas:
See
https://rechneronline.de/pi/hohlkegelstumpf.php