-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* base layer * followup * layers * default derive * intermediate type for searching with layers * pathfinding across layers works * typo * more layers * remove stray dbg * remove extra changes * stitching * factor some code * limit number of polygons in one layer * auto stitch * typo * baking on layers * typo * change auto_stitch * refactor * refactor * search for point on a given layer * move from isize to u32 * clippy * remove intermediate type * merge layers * unified api to query with/without layers * fix doc * stop condition support layers * more tests (currently failing) * oo * fix paths on overlapping layers * clippy * friendlier intersection * refactor * can get the path with layer change details * can block layers * feature to limit impact * fix no-default-baking feature * make more things pub * can remove_useless_vertices * more detailed debug info * fix ccw order after stitching, and don't trust is_corner * can stitch layers only one way * clippy * set is_corner when cleaning polygons of a mesh * put cleanup methods together * fix tests * get some perf back * add tests in ci for new feature * keep edges_index on iterator * add traceable example of getting a path * more iterators * don't do island detection when there are multiple layers * unused dependency
- Loading branch information
Showing
17 changed files
with
2,157 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use glam::Vec2; | ||
use polyanya::{Mesh, PolyanyaFile}; | ||
use tracing_subscriber::layer::SubscriberExt; | ||
|
||
fn main() { | ||
tracing::subscriber::set_global_default( | ||
tracing_subscriber::registry().with(tracing_tracy::TracyLayer::default()), | ||
) | ||
.expect("set up the subscriber"); | ||
let mesh: Mesh = { | ||
let _execution_span: tracing::span::EnteredSpan = | ||
tracing::info_span!("loading mesh").entered(); | ||
PolyanyaFile::from_file("meshes/aurora-merged.mesh") | ||
.try_into() | ||
.unwrap() | ||
}; | ||
println!("loaded mesh"); | ||
|
||
for _i in 0..1000 { | ||
let _execution_span: tracing::span::EnteredSpan = | ||
tracing::info_span!("getting path").entered(); | ||
mesh.path(Vec2::new(233.0, 323.0), Vec2::new(422.0, 650.0)) | ||
.unwrap(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.