select element
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
select element
I have mesh just on the boundary how should I change the values of the axis in order to move these meshes to be inside the model.
any idea?
I created the object and the meshes are the points on the boundary not in the boject
any idea?
I created the object and the meshes are the points on the boundary not in the boject
- Attachments
-
- mesh.PNG (40.09 KiB) Viewed 697 times
Last edited by schöne on Thu Dec 01, 2022 5:22 am, edited 3 times in total.
Re: boundary mesh
Please post an example file. It it unclear what is meant by boundary and model (aren't the meshes part of the model?).
Re: boundary mesh
This is still not the example file, only an image of its model. And I have no clue what exactly the problem is. What do you finally want to achieve?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: boundary mesh
I have some points(mesh ) on the boundary not inside the object . In order to be these point inside the object I need to change theier position which means that I need know for which values of x,y,z will be these points inisde the object?
Re: boundary mesh
To check if a mesh point is inside a shape:
To get the distance and the nearest point on a Shape:
To change a point in a mesh:
Code: Select all
obj.Shape.isInside(mesh.Mesh.Points[0].Vector)
Code: Select all
dist, pts, geom = obj.Shape.distToShape(Part.Vertex(mesh.Mesh.Points[0].Vector))
Code: Select all
old = mesh.Mesh
new = old.copy()
new.setPoint(0, App.Vector(1, 2, 3))
mesh.Mesh = new
Re: boundary mesh
thank you so much . is it possible to apply this code on some of meshes(sample)?
Re: select element
I do not understand anymore. You have meanwhile changed the OP and it no longer matches you original request.
Re: select element
I mean the code which you posted could we apply it from some selected meshs(points/vertex)
Re: select element
Provide a sample file please.