Comments (4)
I am using PlanPolygonCentroid3D.m but sometimes the computed area is negative.
Is this meant to be like this? @renaultJB
from msk-staple.
Requires double checking @modenaxe
from msk-staple.
I have modified the TriPlanIntersect.m function and now in the Curves structure you have access to the area of the 2D polygon described by the curves points : Curves(i).Area
is the area of the 2D polygon Curves(i).Pts
embedded in 3D space . The calculation is performed with polyarea once the curve is expressed in its own coordinate system. This area doesn't account for potential nested curves that describes hole, so the computed area Curves(i).Area is always the area of the section described by the curves(i) regardless of the fact that there are holes or not in this cross section.
The "TotArea" output account for nested curves and holes when computing the area of the cross section.
So I guess the PlanPolygonCentroid3D.m function is not working properly for area calculation and should be modified to perform the computation of area with polyarea. But it might not be useful anymore as areas can be computed with TriPlanIntersect.m .
from msk-staple.
updated code and implemented a slicing function.
from msk-staple.
Related Issues (20)
- [OpenSim 4.2] Test STAPLE with recently released OpenSim 4.2
- Pelvis mass&inertia don't get scaled in scaleMassProps.m HOT 4
- [STAPLE/BCS] Feet have wrong BC HOT 1
- [GIBOC-core] TriFillPlanarHoles.m throws error if mesh has no holes HOT 2
- [STAPLE/Foot] add chopart's transverse tarsal joint
- [STAPLE/Foot] add tarso-metatarsal joint
- [CFF file] add citation file
- Inversion of tibial CS when using the TLEM2 bone dataset HOT 3
- Beginner in STAPLE HOT 2
- articular surfaces of femur and acetabulum cartilages HOT 13
- [STAPLE/Foot] fitQuadriTalus confuses right and left sides HOT 1
- [STAPLE/bone_datasets] inconsistent names of bone mat files substructure
- [createOpenSimModelJoints.m] an incomplete joint is always required for upd ground connection
- [STAPLE/Algorithms] some algorithms are not documented at all
- [STAPLE] create folder of user settings for joint def
- [Doc] add table with fields of JCS and BCS structures to README or docs HOT 1
- [STAPLE/preprocessing] minimum workflow for raw geometry cleaning and sanity checks
- [STAPLE/JointDefinitions] Modenese2018 throws error if Tibia is not present
- [ROADMAP] STAPLE 0.1 (first stable release) HOT 2
- [DOCS] Automating documentation at pushing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msk-staple.