Parametric Geometric Objects
Parametric geometric objects are a set of predefined geometric objects that can be generated by specifying a set of parameters. These objects are useful for generating simple geometric shapes that can be used for testing, visualization, and other purposes.
The running example can be found in the repository
The following parametric geometric objects are available in tesselate
:
- Bohemian dome
- Bour
- Boy
- Conic spiral
- Dini surface
- Ellipsoid
- Mobius strip
- Pseudosphere
- Superellipsoid
- Supertoroid
All shapes are created using the tesselate
module.
The module provides a set of functions to create the shapes.
All shapes have default method and create
method.
Example
#![allow(unused)] fn main() { use glam::Vec3; use tessellate::mesh::shape::parametric::*; use tessellate::mesh::material::Color; fn mobius_strip() -> MobiusStrip { MobiusStrip::default() } fn super_ellipsoid() -> SuperEllipsoid { SuperEllipsoid::create( Vec3::new(3.0, 3.0, 2.0), 50, 1.0, 1.0, 2.0, 4.0, 5.0, Color::default()) } fn pseudo_sphere() -> Pseudosphere { Pseudosphere::default() } }