3D polygon mesh volume calculation
3D polygon mesh volume calculation
Hello.
I use latest TeeChart 4.2023.2.17 in a WinForms application targeting .NET 5.0.
I have a Points3D series with some sample values (it can be converted to TriSurface if needed).
Is it possible to calculate volume of a 3D mesh that is limited by series lines? Is there a special function or something?
Thank you.
I use latest TeeChart 4.2023.2.17 in a WinForms application targeting .NET 5.0.
I have a Points3D series with some sample values (it can be converted to TriSurface if needed).
Is it possible to calculate volume of a 3D mesh that is limited by series lines? Is there a special function or something?
Thank you.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
That's an interesting question, but unfortunately, as things stand, the answer is no—no we don't have a function to calculate the volume (nor surface area) of 3D series types. Just to be clear—are you talking about generating 3D meshes as in this post and then calculating their volume?bairog wrote: ↑Tue Feb 21, 2023 6:22 amI use latest TeeChart 4.2023.2.17 in a WinForms application targeting .NET 5.0.
I have a Points3D series with some sample values (it can be converted to TriSurface if needed).
Is it possible to calculate volume of a 3D mesh that is limited by series lines? Is there a special function or something?
Thank you.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
Yes, I'm talking about something like that. My mesh is something like:Christopher wrote: ↑Tue Feb 21, 2023 3:54 pmJust to be clear—are you talking about generating 3D meshes as in this post and then calculating their volume?
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
Looks an interesting problem. What you're looking for sounds like a Volume Mesh—I've found a couple of opensource libraries which might be able to perform this operation, but nothing written in C#. Have you been able to find a promising looking library?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
For now I've found this StackOveflow question answer and library geometry3Sharp that is mentioned here. Haven't tested them yet
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
It looks as though the Stackoverflow user @bairog appears in the comments section of that question with posts from this time last year ... is that you?bairog wrote: ↑Tue Feb 21, 2023 5:13 pmFor now I've found this StackOveflow question answer and library geometry3Sharp that is mentioned here. Haven't tested them yet
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
Yes it was me . I was assigned a task which included 3D mesh volume calculation a year ago. But short time later I was switched to another project. And now initial task is relevant for me again.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
I see that geometry3Sharp now recommends geometry4Sharp, and that this library contains things such as 'MeshMeasurements' which include volume. It looks as though it could be useful.
I see that geometry3Sharp now recommends geometry4Sharp, and that this library contains things such as 'MeshMeasurements' which include volume. It looks as though it could be useful.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
Maybe you can use the math from this library to calculate the volume of a 3D mesh (looks like most suitable for TriSurface series).
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
https://github.com/Steema/MeshVolume
Which is to say I've drawn a sphere in the Chart using a Points3D series. What's missing is taking the points returned from SphereCoordinates() and feeding them into geometry4Sharp and getting a volume back ...
Well, I've got as far as this:
https://github.com/Steema/MeshVolume
Which is to say I've drawn a sphere in the Chart using a Points3D series. What's missing is taking the points returned from SphereCoordinates() and feeding them into geometry4Sharp and getting a volume back ...
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
I've found some an old example repo which uses geometry3Sharp and I've updated it to geometry4Sharp. The demos aren't very good, but they do give more of an idea of how to use the library. I've added them to our repo, which you can clone with:Christopher wrote: ↑Wed Feb 22, 2023 6:08 pmWhich is to say I've drawn a sphere in the Chart using a Points3D series. What's missing is taking the points returned from SphereCoordinates() and feeding them into geometry4Sharp and getting a volume back ...
Code: Select all
git clone --recurse-submodules https://github.com/Steema/MeshVolume.git
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
Are you talking about geometry3SharpDemos repo?Christopher wrote: ↑Thu Feb 23, 2023 12:10 pmI've found some an old example repo which uses geometry3Sharp and I've updated it to geometry4Sharp. The demos aren't very good, but they do give more of an idea of how to use the library.
As I see unfortunatelly it has no example of using MeshMeasurements at all Hope you will manage to get further somehow..
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
I thought I was trying to help you here I doubt I'm going to be able to get any further on this, but if I do I'll let you know.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: 3D polygon mesh volume calculation
Looks like I misunderstood you - I thought that you would try to add a volume calculation function to your charting library. Sorry.Christopher wrote: ↑Wed Mar 01, 2023 7:35 amI thought I was trying to help you here I doubt I'm going to be able to get any further on this, but if I do I'll let you know.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: 3D polygon mesh volume calculation
Hello,
Sorry, to be clear, we have no plans to add this kind of functionality to TeeChart at this time; although TeeChart does perform a rudimentary kind of polygon meshing in its Surface and TriSurface series, we don't have any plans to add volume meshing to it.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |