Git Product home page Git Product logo

Comments (4)

modenaxe avatar modenaxe commented on August 15, 2024

I am using PlanPolygonCentroid3D.m but sometimes the computed area is negative.
Is this meant to be like this? @renaultJB

from msk-staple.

modenaxe avatar modenaxe commented on August 15, 2024

Requires double checking @modenaxe

from msk-staple.

renaultJB avatar renaultJB commented on August 15, 2024

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.

modenaxe avatar modenaxe commented on August 15, 2024

updated code and implemented a slicing function.

from msk-staple.

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.