Page 1 of 1

Deviation simulation from CAD model

Posted: Mon Oct 07, 2024 12:25 pm
by bellinda
Dear,
I have 3D CAD models with point position, normal and curvature. I would like to simulate a deviation production for each CAD. Could CloudCompare achieve such task?
Regards

Re: Deviation simulation from CAD model

Posted: Mon Oct 07, 2024 9:14 pm
by daniel
Well, yes, as long as you can export your model as a triangular mesh surface (stl, obj, ply, fbx, etc.).

Re: Deviation simulation from CAD model

Posted: Tue Oct 08, 2024 10:39 am
by bellinda
Yes, I can export my model as one of these format. I asked because I could not find how to do it. Could you please guide me?

Re: Deviation simulation from CAD model

Posted: Fri Oct 11, 2024 2:44 pm
by daniel
So maybe what is unclear to me now is the 'simulate a deviation production'? Do you want to move all the vertices at once (which is possible), or rescale the model (which is also possible), or only some of the vertices (which is much harder with CloudCompare ;)?

Re: Deviation simulation from CAD model

Posted: Mon Oct 14, 2024 8:17 am
by bellinda
I could move all the vertices at once. Which function CloudCompare used for this? How can I do this?

Re: Deviation simulation from CAD model

Posted: Mon Oct 14, 2024 9:15 am
by daniel
Juste use the 'Apply transformation' tool to your mesh. Or alternatively you can use the 'Edit > Translate/Rotate' tool to do it interactively (you can load the mesh twice, or load it once and clone it, and move only one version so as to compare the result).

See https://www.cloudcompare.org/doc/wiki/i ... sformation and https://www.cloudcompare.org/doc/wiki/i ... ation_Tool

Re: Deviation simulation from CAD model

Posted: Mon Oct 14, 2024 9:35 am
by bellinda
I do not want to apply a geometrical transformation (translation, rotation...) but a geometrical deviation (which could occur during the reproduction of a CAD model in industry) which will be curve, noise... dependent. Could CloudCompare simulate such process?

Re: Deviation simulation from CAD model

Posted: Tue Oct 15, 2024 6:18 am
by daniel
Ah no, not directly. But you could use the PythonWrapper (to run Python code inside CC) or CloudCompy (to use CC's capabilities inside a python script). You just need to iterate over the vertices and apply some random noise or something else.

Re: Deviation simulation from CAD model

Posted: Thu Oct 17, 2024 7:27 am
by bellinda
Ok, thank you for your help.