Skip to content

Commit

Permalink
Fix some broken code
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Zervas <[email protected]>
  • Loading branch information
dzervas committed Jun 11, 2024
1 parent ab3e2e3 commit 525063a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cadmium/examples/project_simple_extrusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use cadmium::workbench::AddSketch;
use cadmium::feature::extrusion::{self, Direction, Mode};
use cadmium::project::Project;
use cadmium::message::MessageHandler as _;
use cadmium::isketch::{AddLine, AddPoint};
use cadmium::isketch::primitive::{AddLine, AddPoint};
use cadmium::archetypes::PlaneDescription;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion packages/cadmium/src/feature/extrusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::workbench::Workbench;
use crate::IDType;

use super::get_isoface_wires;
use super::feature::{Feature, SolidLike};
use super::{Feature, SolidLike};

#[derive(Tsify, Debug, Clone, Serialize, Deserialize)]
#[tsify(into_wasm_abi, from_wasm_abi)]
Expand Down
1 change: 0 additions & 1 deletion packages/cadmium/src/isketch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub struct ISketch {
}

impl ISketch {
// TODO: Maybe pass the plane as refcell?
pub fn new(plane: Rc<RefCell<Plane>>) -> Self {
// The key difference between Sketch and RealSketch is that Sketch lives
// in 2D and RealSketch lives in 3D. So we need to convert the points
Expand Down

0 comments on commit 525063a

Please sign in to comment.