Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattatz committed Jan 9, 2025
1 parent 10eedbf commit 4d3a289
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ The supported features also include finding the closest point on NURBS curves, f

<img src="https://github.com/user-attachments/assets/4117250d-582e-4bee-84b7-976f27739f9d" width="360px" alt="Surface & curve intersections" />

<img src="https://github.com/user-attachments/assets/904c1a97-9f14-4bb6-9e41-6beebd62882f" width="360px" alt="Trimmed surface" />

## Usage

```rust
Expand Down
7 changes: 4 additions & 3 deletions examples/trimmed_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use nalgebra::{Point2, Point3, Point4, Vector2, Vector3};

use curvo::prelude::*;
use rand::Rng;
use systems::screenshot_on_spacebar;
mod materials;
mod misc;
mod systems;
Expand All @@ -39,8 +40,8 @@ struct AppPlugin;

impl Plugin for AppPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
app.add_systems(Startup, setup);
// .add_systems(Update, screenshot_on_spacebar);
app.add_systems(Startup, setup)
.add_systems(Update, screenshot_on_spacebar);
}
}

Expand Down Expand Up @@ -182,7 +183,7 @@ fn setup(
],
);

let offset = 10.0;
let offset = 5.0;

let trimming_curve = NurbsCurve3D::try_circle(
&Point3::new(2.5, 5.0, 2.5),
Expand Down

0 comments on commit 4d3a289

Please sign in to comment.