nanospline
nanospline copied to clipboard
Could you add a function for getting area of a close curve?
Many thanks for your project. Now i am using SISL lib for my project by QT5. But it is not updated long time. SISL :https://github.com/SINTEF-Geometry/SISL
SISL includes area as
Could you add the function in nanospline project?
Best regards,
Hi @liufeijin , thanks for your interest in nanospline. Can you provide more information about this feature? i.e. the precision required, the target application, etc. I put a "help wanted" tag here because I cannot work on it at the moment, but I will get back to it as soon as I can.
Hi qnzhou, many thanks for your reply. I want to get the feature that calculate area between a line and a curve as below pictures
Case A the curve is close.
get the area under line(red part) and area above line(blue part)
Case B
get the area under line(red part) and area above line(blue part).
I use this feature for getting the volume of a irregular entities like as a stone. First step, slice the stone to get many slices. Second, compute areas of all slices. Then, compute the volume by area curve ( the area of slices and Y axis of slices)
About getting the blue area and red area apart by the line Image the stone is put in water , it is for computing the volume of stone in the water part and above part.
look forward to the project update
seems this project is gave up?