1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! Dear ImPlot3D - Rust bindings (high level)
//!
//! Safe wrapper over `dear-implot3d-sys`, designed to integrate with
//! `dear-imgui-rs`. Mirrors `dear-implot` design: context + Ui facade,
//! builder-style helpers, optional `mint` inputs.
//!
//! # Quick Start
//!
//! ```no_run
//! use dear_imgui_rs::*;
//! use dear_implot3d::*;
//!
//! let mut imgui_ctx = Context::create();
//! let plot3d_ctx = Plot3DContext::create(&imgui_ctx);
//!
//! // In your main loop:
//! let ui = imgui_ctx.frame();
//! let plot_ui = plot3d_ctx.get_plot_ui(ui);
//!
//! plot_ui.begin_plot("3D Plot").build(|plot| {
//! let xs = [0.0, 1.0, 2.0];
//! let ys = [0.0, 1.0, 0.0];
//! let zs = [0.0, 0.5, 1.0];
//! plot.plot_line_f32("Line", &xs, &ys, &zs, Line3DFlags::NONE);
//! });
//! ```
//!
//! # Features
//!
//! - **mint**: Enable support for `mint` math types (Point3, Vector3)
//!
//! # Architecture
//!
//! This crate follows the same design patterns as `dear-implot`:
//! - `Plot3DContext`: Manages the ImPlot3D context (create once)
//! - `Plot3DUi`: Per-frame plot builders and context style scopes
//! - `Plot3DSetup`: Axis and box configuration before native setup locks
//! - `Plot3DScope`: Item submission and plot queries within the drawing closure
//! - Builder pattern: Fluent API for configuring plots
//! - Type-safe flags: Using `bitflags!` for compile-time safety
pub use sys as imgui_sys;
pub use ;
pub use dear_implot3d_sys as sys;
pub use Plot3DBuilder;
pub use Plot3DContext;
pub use *;
pub use ;
pub use *;
pub use ;
pub use Mesh3DBuilder;
pub use *;
pub use *;
pub use Surface3DBuilder;
pub use ;
pub use ;