Skip to main content

render

Function render 

Source
pub fn render<F: Function + RenderHints>(
    b: BoundShape<'_, F, f32>,
    config: &RenderConfig<'_>,
) -> Option<Image>
Expand description

Renders the given shape into a 3D image with a particular configuration configuration.

The shape provides the evaluator backend (F) and bound variables; the configuration supplies resolution, transforms, etc.

Returns Some(Image) of pixel data on success, or None if the render was cancelled.