Creates a new CylindricalArch 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.
Sweep angle in radians (theta).
Number of subdivisions along bend arc.
Inner bend radius (a).
Whether pipe ends are open (no caps).
Pipe cross-section radius (r).
Number of subdivisions around pipe circumference.
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.
Returns a bounding volume that encapsulates this geometry.
The bounding volume.
Calculates the circular cap area of a single pipe end $A_{\text{cap}} = \pi r^2$.
Returns the raw geometry data ready for GPU upload.
The geometry data interface.
Calculates the major torus radius $R = a + r$.
Calculates the curved mantle surface area $M = 2\pi \cdot \theta_{\text{arc}} (a + r) r$.
Calculates the surface-to-volume ratio $A / V$.
Calculates the total surface area $A = M + 2\pi r^2$ (or $M$ if openEnded).
Calculates the volume $V = \pi \cdot \theta_{\text{arc}} (a + r) r^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 CylindricalArch (Zylinderbogen / Rohrbogen / Curved Pipe Elbow) geometry.
A curved solid cylinder segment forming a quarter torus (or customizable angular torus sector) used to connect two perpendicular cylindrical pipes smoothly.
Mathematical formulas:
See
https://rechneronline.de/pi/zylinderbogen.php