3D subtraction of parts ...

Everything related to 3D programming
threedslider
Enthusiast
Enthusiast
Posts: 396
Joined: Sat Feb 12, 2022 7:15 pm

Re: 3D subtraction of parts ...

Post 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 !
tj1010
Enthusiast
Enthusiast
Posts: 716
Joined: Mon Feb 25, 2013 5:51 pm

Re: 3D subtraction of parts ...

Post 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.
marc_256
Addict
Addict
Posts: 841
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: 3D subtraction of parts ...

Post 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
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
threedslider
Enthusiast
Enthusiast
Posts: 396
Joined: Sat Feb 12, 2022 7:15 pm

Re: 3D subtraction of parts ...

Post 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:
marc_256
Addict
Addict
Posts: 841
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: 3D subtraction of parts ...

Post by marc_256 »

@ threedslider,

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

marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
threedslider
Enthusiast
Enthusiast
Posts: 396
Joined: Sat Feb 12, 2022 7:15 pm

Re: 3D subtraction of parts ...

Post by threedslider »

Yeah sure :mrgreen:
Post Reply