Deviation simulation from CAD model

Feel free to ask any question here
Post Reply
bellinda
Posts: 5
Joined: Mon Oct 07, 2024 11:51 am

Deviation simulation from CAD model

Post 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
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Deviation simulation from CAD model

Post by daniel »

Well, yes, as long as you can export your model as a triangular mesh surface (stl, obj, ply, fbx, etc.).
Daniel, CloudCompare admin
bellinda
Posts: 5
Joined: Mon Oct 07, 2024 11:51 am

Re: Deviation simulation from CAD model

Post 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?
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Deviation simulation from CAD model

Post 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 ;)?
Daniel, CloudCompare admin
bellinda
Posts: 5
Joined: Mon Oct 07, 2024 11:51 am

Re: Deviation simulation from CAD model

Post by bellinda »

I could move all the vertices at once. Which function CloudCompare used for this? How can I do this?
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Deviation simulation from CAD model

Post 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
Daniel, CloudCompare admin
bellinda
Posts: 5
Joined: Mon Oct 07, 2024 11:51 am

Re: Deviation simulation from CAD model

Post 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?
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Deviation simulation from CAD model

Post 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.
Daniel, CloudCompare admin
bellinda
Posts: 5
Joined: Mon Oct 07, 2024 11:51 am

Re: Deviation simulation from CAD model

Post by bellinda »

Ok, thank you for your help.
Post Reply