nanospline icon indicating copy to clipboard operation
nanospline copied to clipboard

Could you add a function for getting area of a close curve?

Open liufeijin opened this issue 3 years ago • 4 comments

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 TIM截图20201104092620 Could you add the function in nanospline project? Best regards,

liufeijin avatar Nov 04 '20 01:11 liufeijin

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.

qnzhou avatar Nov 17 '20 04:11 qnzhou

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

新建位图图像 (2) Case A the curve is close. get the area under line(red part) and area above line(blue part) 新建34像 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.

liufeijin avatar Nov 22 '20 23:11 liufeijin

look forward to the project update

liufeijin avatar Mar 14 '21 12:03 liufeijin

seems this project is gave up?

liufeijin avatar Nov 14 '21 00:11 liufeijin