Package: graphene

Function graphene:sphere-init-from-vectors

Lambda List

graphene:sphere-init-from-vectors (sphere vectors center)

Arguments

sphere -- a graphene:sphere-t instance to initialize
vectors -- a list of graphene:vec3-t instances
center -- a graphne:point3d-t instance with the center of the sphere, or nil

Return Value

The initialized graphene:sphere-t instance.

Details

Initializes the given sphere using the given list of 3D coordinates so that the sphere includes them. The center of the sphere can either be specified, or will be center of the 3D volume that encompasses all vectors.
 

See also

2024-12-29