Class WireframeSphere
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe.WireframeSphere
A wireframe sphere approximation built from rings of connected line segments.
The sphere is generated using parametric spherical coordinates, producing a
latitude-longitude grid of vertices connected by lines.
The sphere is divided into 20 longitudinal slices and 20 latitudinal rings
(using a step of PI / 10 radians). Adjacent vertices within each ring
are connected, and corresponding vertices between consecutive rings are also
connected, forming a mesh that approximates a sphere surface.
Usage example:
LineAppearance appearance = new LineAppearance(1, Color.WHITE);
WireframeSphere sphere = new WireframeSphere(new Point3D(0, 0, 300), 100f, appearance);
shapeCollection.addShape(sphere);
- See Also:
-
Field Summary
Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController -
Constructor Summary
ConstructorsConstructorDescriptionWireframeSphere(Point3D location, float radius, LineAppearance lineFactory) Constructs a wireframe sphere at the given location with the specified radius. -
Method Summary
Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
addShape, addShape, beforeTransformHook, getGroup, getLocation, getOriginalSubShapes, getViewSpaceTracker, hideGroup, removeGroup, setBackfaceCulling, setColor, setGroupForUngrouped, setLightingManager, setMouseInteractionController, setShadingEnabled, setTransform, showGroup, transform
-
Constructor Details
-
WireframeSphere
Constructs a wireframe sphere at the given location with the specified radius. The sphere is approximated by a grid of line segments generated from parametric spherical coordinates.- Parameters:
location- the center point of the sphere in 3D spaceradius- the radius of the spherelineFactory- the line appearance (color, width) used for all line segments
-