Code Monkey home page Code Monkey logo

Comments (10)

cmfsx avatar cmfsx commented on August 11, 2024 1

@mauigna06 I tried it. When it does work it looks fantastic but I found it to be a bit unpredictable in instances. There seems to be a relationship between the size (dimensions) of the plane and the mirrored plane (on the fibula). So these planes intersect with each other in unpredictable ways and cut segments alone its path creating segments that are useless.

This is how it looks when it goes wrong.

Screenshot from 2020-12-24 16-34-12

When it cuts nicely it looks very good and ready for 3D printing with no big errors.

2

from slicerbonereconstructionplanner.

mauigna06 avatar mauigna06 commented on August 11, 2024 1

The transform formula was corrected on the last commit (so it probably won't position the fibula planes that way anymore). But there is a problem in your planning (because of how the module is made). The planes should be placed with the normal pointing to to the posterior (posterior-right) direction (aproximatelly). Please look how the normals are positioned on the example I shared you above. Also note what planes should be positioned first.

from slicerbonereconstructionplanner.

mauigna06 avatar mauigna06 commented on August 11, 2024 1

I'm happy that you can use the module. That means the GUI is intuitive enough.
You are right that one click plane creation would solve this kind of problems. I think it should be the next thing we work on

from slicerbonereconstructionplanner.

lassoan avatar lassoan commented on August 11, 2024 1

Very nice work @mauigna06. We should talk so that I can introduce you to the approach that we developed for computing transforms for image-guided therapy applications (based on decomposing all transforms to trivially simple transforms between well-defined coordinate systems). Let me know what times would work for you on Dec 26 or later.

from slicerbonereconstructionplanner.

mauigna06 avatar mauigna06 commented on August 11, 2024

This is done in the last commit. Segmentations of mandible and fibula should be provided for the module to work.
Now cutted bones can be 3D printed to check if module is working right

Screenshot

from slicerbonereconstructionplanner.

lassoan avatar lassoan commented on August 11, 2024

This will be awesome, now you just need to transform the bone segments to the mandible to have a preview of the final bone reconstruction.

from slicerbonereconstructionplanner.

mauigna06 avatar mauigna06 commented on August 11, 2024

Can you share slicerScene examples that give you such errors?
Maybe the unpredictable behaviour happens because of the planes normals position. Here is an example picture of how the planes should be positioned in an axial view:
Screenshot2
The first plane is the distal one, the second one is the middle one and the third one is the mesial one (each normal is the blue vector). I'm not sure if this solutions the problem but let me know

from slicerbonereconstructionplanner.

lassoan avatar lassoan commented on August 11, 2024

Currently, it is hard to place the planes correctly, but with the single-click add, the planes will be placed approximately corectly and you will just need to do slight manual adjustments.

from slicerbonereconstructionplanner.

cmfsx avatar cmfsx commented on August 11, 2024

Please find the scenes. first is after creating the planes and without been applied and the second is after applied.

https://drive.google.com/file/d/1BvT5d0VYgnddn3qzfkrTcHblNTTe42C2/view?usp=sharing

https://drive.google.com/file/d/1ED89dtTUgfT8Dy55MMPtrF6MzvNcZfKx/view?usp=sharing

I saved the first scene before applying anything with the hope of trying out different combinations. However, when I load it and try to apply it (with modifications or without any modifications) I get the following error.

Screenshot from 2020-12-25 00-30-49

from slicerbonereconstructionplanner.

cmfsx avatar cmfsx commented on August 11, 2024

I figure out the problem with my plane placement. It is because I was not paying attention to the origin of the plane. As the transformation updates with the change of origin and this was the problem. Is it possible to make the origin of the plane constraint on to the mandibular curve so only the direction information is passed on the transform and the origin of the transformed planes on the fibul constrained on to the fibula line? This would prevent the weird cutting plane generation. And i guess it would solve the problem with direction as well

from slicerbonereconstructionplanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.