Hi,
is there a function to rotate wires around a given point (eg. vertex). Eg. I have a square and want to rotate it 45 degree around the first vertex.
I'm not looking for the Placement/Attachment option, the base coordinates should still stay the same.
Or should I re-calculate the target points via trigonometry in that case (wouldn't be a problem either but I don't want to duplicate fundamental code)?
Rotating Wire (list of edges) around a certain point (Vertex)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Rotating Wire (list of edges) around a certain point (Vertex)
You can work with 'transformShape()' directly on the shape of the object.
AFAIK you cannot update shape of an object so you have to work on a copy.
AFAIK you cannot update shape of an object so you have to work on a copy.
Re: Rotating Wire (list of edges) around a certain point (Vertex)
That's exactly what I was looking for thanks!