Struct anl::ImplicitSphere [] [src]

pub struct ImplicitSphere { /* fields omitted */ }

Generates a hyper sphere as a distance field. Values between the center and the radius are interpolated between 0 and 1, while values beyond radius are 0. The individual axis components of the center point, as well as the radius, are specifiable as either constants or as noise functions, making this an extremely flexible sphere indeed. Following are images taken as cross-sections of the sphere in the 2D plane, the one on the left with all constants for the components, the one in the center with constants for center and a fractal function for radius, and the one on the right with a fractal for the x component, and a constant radius.

Methods

impl ImplicitSphere
[src]

Trait Implementations

impl Default for ImplicitSphere
[src]

Returns the "default value" for a type. Read more

impl ImplicitModule for ImplicitSphere
[src]