Skip to main content

init

Function init 

Source
pub fn init() -> Result<()>
Expand description

Initializes polyscope with default settings.

This must be called before any other polyscope functions. It sets up the global state required for structure registration and rendering.

§Errors

Returns an error if polyscope has already been initialized.

§Example

use polyscope_rs::*;

fn main() -> Result<()> {
    init()?;
    // Now you can register structures and call show()
    Ok(())
}