-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project structure to cargo workspace
- Loading branch information
Showing
45 changed files
with
970 additions
and
421 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,42 +1,12 @@ | ||
[package] | ||
name = "kelocam" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"crates/*", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
authors = ["Lucas Birkert <kekontheworld@gmail.com>"] | ||
edition = "2021" | ||
rust-version = "1.65" | ||
|
||
|
||
[dependencies] | ||
egui = "0.22.0" | ||
eframe = { version = "0.22.0", default-features = false, features = [ | ||
"default_fonts", # Embed the default egui fonts. | ||
"wgpu", | ||
] } | ||
serialport = "4.2.0" | ||
stl = "0.2.1" | ||
bytemuck = { version = "1.13.1", features = ["derive"] } | ||
tracing-subscriber = "0.3" | ||
nalgebra = "0.32.3" | ||
nalgebra-glm = "0.18.0" | ||
rfd = "0.11.4" | ||
futures = "0.3.28" | ||
pollster = "0.3.0" | ||
byteorder = "1.4.3" | ||
image = "0.24.6" | ||
rstar = "0.11.0" | ||
|
||
[profile.release] | ||
opt-level = 2 # fast and small wasm | ||
|
||
# Optimize all dependencies even in debug builds: | ||
[profile.dev.package."*"] | ||
opt-level = 2 | ||
[patch.crates-io] | ||
|
||
# If you want to use the bleeding edge version of egui and eframe: | ||
# egui = { git = "https://github.com/emilk/egui", branch = "master" } | ||
# eframe = { git = "https://github.com/emilk/egui", branch = "master" } | ||
|
||
# If you fork https://github.com/emilk/egui you can test with: | ||
# egui = { path = "../egui/crates/egui" } | ||
# eframe = { path = "../egui/crates/eframe" } | ||
lto = true |
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,10 @@ | ||
[package] | ||
name = "kelocam-core" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
nalgebra = "0.32.3" | ||
stl = "0.2.1" |
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,15 @@ | ||
# KeloCAM - Core module | ||
|
||
This module contains all of the primitive structs KeloCAM uses, which includes | ||
|
||
1. Axis | ||
2. Line | ||
3. Mesh | ||
4. Path | ||
5. Plane | ||
6. Ray | ||
7. Sphere | ||
8. Square | ||
9. Triangle | ||
|
||
It has almost no dependencies and is easily testable. |
File renamed without changes.
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,14 @@ | ||
use nalgebra::Vector3; | ||
|
||
pub trait Geometry: BoundingBox {} | ||
|
||
pub trait BoundingBox { | ||
/// Compute the minimum coordinate of the bounding box. | ||
fn bb_min(&self) -> Vector3<f32>; | ||
/// Compute the maximum coordinate of the bounding box. | ||
fn bb_max(&self) -> Vector3<f32>; | ||
/// Compute the minimum and maximum coordinate of the bounding box. | ||
fn bb_min_max(&self) -> (Vector3<f32>, Vector3<f32>) { | ||
(self.bb_min(), self.bb_max()) | ||
} | ||
} |
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.