Page 3 of 3

Re: 3D subtraction of parts ...

Posted: Sun Nov 10, 2024 3:16 pm
by threedslider
@marc_256 you are welcome

3D math is not very complicate, just understand the rule and then you can do it whatever you want at all :shock:

So the rule doesn't change only number and some algorithm to make the math working, you will see at beginning is hard but in time it is more easily to do it once the rule is good in 3D math ;)

I will show you my code on how to make a 3D engine system in Purebasic and inspire in your 3d app :arrow: :!: :mrgreen:

Good luck !

Re: 3D subtraction of parts ...

Posted: Wed Dec 18, 2024 12:27 pm
by tj1010
This can be done with Mesh library, but you'd basically have to rebuild the mesh using vertice functions by manually modifying vertice data based on input.. It'd be too much code to put in a post even after you made generic functions that take any mesh as input..

I figured this all out by trying to make destructive environments and vehicles years back. CAD is way easier but you still have to do a lot of low level vertice calculation based on varying mesh operations, and there are no libraries or shortcuts for that.

Re: 3D subtraction of parts ...

Posted: Wed Dec 18, 2024 1:43 pm
by marc_256
Hello tj1010,
thanks for your answer,
CAD is way easier but you still have to do a lot of low level vertices calculation based on varying mesh operations,
and there are no libraries or shortcuts for that.
This is what I'm try to do,
low level vertices editions, to recreate my edited meshes.
Therefore I'm writing a program to visualize the edited mesh, so I can see the result in my 3D editor/viewer.

But with big/large meshes, this is very CPU consuming ...
For now I'm trying to find a way to intersect triangles with triangles and create new vertices. :twisted: :idea:

Thanks,
marc

Re: 3D subtraction of parts ...

Posted: Mon Dec 23, 2024 11:54 am
by threedslider
Sorry @marc_256 I am too late to finish with my 3d modeling cause I was in my internship for web dev :)

Now I am resuming and will work again :mrgreen:

See you later :wink:

Re: 3D subtraction of parts ...

Posted: Tue Dec 24, 2024 3:03 am
by marc_256
@ threedslider,

No problem,
2025 is the CAD/CAM/CNC finishing/debugging year ... :mrgreen: 8)

marc

Re: 3D subtraction of parts ...

Posted: Tue Dec 24, 2024 4:27 am
by threedslider
Yeah sure :mrgreen: