Skip to main content

Crate polyscope_core

Crate polyscope_core 

Source
Expand description

Core abstractions for polyscope-rs.

This crate provides the fundamental traits and types used throughout polyscope-rs:

  • Structure trait for geometric objects (meshes, point clouds, etc.)
  • Quantity trait for data associated with structures (scalars, vectors, colors)
  • Global state management and structure registry
  • Configuration options and persistent values

Re-exports§

pub use error::PolyscopeError;
pub use error::Result;
pub use gizmo::GizmoAxis;
pub use gizmo::GizmoConfig;
pub use gizmo::GizmoMode;
pub use gizmo::GizmoSpace;
pub use gizmo::GizmoUniforms;
pub use gizmo::Transform;
pub use ground_plane::GroundPlaneConfig;
pub use ground_plane::GroundPlaneMode;
pub use group::Group;
pub use marching_cubes::McmMesh;
pub use marching_cubes::marching_cubes;
pub use options::Options;
pub use pick::PickResult;
pub use pick::Pickable;
pub use quantity::Quantity;
pub use quantity::QuantityKind;
pub use registry::Registry;
pub use slice_plane::MAX_SLICE_PLANES;
pub use slice_plane::SlicePlane;
pub use slice_plane::SlicePlaneUniforms;
pub use ssao::SsaoConfig;
pub use state::Context;
pub use state::MaterialLoadRequest;
pub use state::with_context;
pub use state::with_context_mut;
pub use structure::HasQuantities;
pub use structure::Structure;
pub use tone_mapping::ToneMappingConfig;

Modules§

error
Error types for polyscope-rs.
gizmo
Transformation gizmo system for interactive manipulation.
ground_plane
Ground plane configuration for polyscope.
group
Group structure for organizing structures hierarchically.
marching_cubes
Marching Cubes isosurface extraction algorithm.
options
Configuration options for polyscope.
pick
Picking and selection system.
quantity
Quantity trait and related types.
registry
Structure registry for managing registered structures.
slice_plane
Slice plane functionality for cutting through geometry.
ssao
SSAO (Screen Space Ambient Occlusion) configuration.
state
Global state management for polyscope.
structure
Structure trait and related types.
tone_mapping
Tone mapping configuration.

Structs§

Mat4
A 4x4 column major matrix.
Vec2
A 2-dimensional vector.
Vec3
A 3-dimensional vector.
Vec4
A 4-dimensional vector.