TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
bairog
- Advanced
- Posts: 128
- Joined: Fri Dec 07, 2018 12:00 am
Post
by bairog » Sun Mar 05, 2023 10:13 am
The object for which I need to calculate the volume looks something like this:


For this object I have a set of points and set of triangular faces. But that faces doesn't form a closed watertight solid (that is a feature of my 3D scanner) - just look at the object "back":

Because my object is not closed I cannot use most of triangle-based
solutions.
geometry4Sharp library is not an option for the same reason (as it also needs triangles to define a
closed region).
But what If instead
Points3D series I will try to use
TriSurface series (and feed my object's points to it)? Is there a way to enumerate triangles that series constists of (as I don't see any suitable member)?
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Post
by Christopher » Thu Mar 09, 2023 9:00 am
Hello,
bairog wrote: ↑Sun Mar 05, 2023 10:13 am
But what If instead
Points3D series I will try to use
TriSurface series (and feed my object's points to it)? Is there a way to enumerate triangles that series constists of (as I don't see any suitable member)?
The issue is that there isn't a list of triangles per se, basically because of the immediate mode canvas that TeeChart renders to (GDI+). If it rendered to a retained mode canvas, such as OpenGL or Direct3D, then we'd have an array of triangles to which we would apply matrices for translation and rotation and so on, but in our case we have no such array as we calculate the triangles and position them in a single algorithm that is ripped down on every repaint.