how to rotate discretize edge result

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

how to rotate discretize edge result

Post by Cekuhnen »

I am trying to figure out how the result of the discretize edge command can be rotated

green is the curve wb command result
red is the position I need them to be

I looked into rotation in the property menu but this rotates around the sketch center not the objects own center - if even existing

thus I am curious how one could rotate the command result
discretize edge.png
discretize edge.png (77.55 KiB) Viewed 878 times
Attachments
discretize edge.FCStd
(9.23 KiB) Downloaded 17 times
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
chrisb
Veteran
Posts: 53924
Joined: Tue Mar 17, 2015 9:14 am

Re: how to rotate discretize edge result

Post by chrisb »

You can choose the center in the Placement dialog.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: how to rotate discretize edge result

Post by Cekuhnen »

chrisb wrote: Sat Jul 24, 2021 2:28 pm You can choose the center in the Placement dialog.
I looked into this too but I fail to be able to specify the rotation center right inside the discretize points.

here is a brief screen recording
https://drive.google.com/file/d/1_JLkcu ... OnGK_/view

so it seems specifying the axis via a datum line is what works, good enough and logical
Screen Shot 2021-07-24 at 11.47.19 AM.png
Screen Shot 2021-07-24 at 11.47.19 AM.png (121.81 KiB) Viewed 819 times
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: how to rotate discretize edge result

Post by TheMarkster »

In the dialog select 2 opposite points (multiple select using ctrl key). Press Selected points button. This populates the center coordinates with the center / midpoint of the 2 selected points and sets up in the axis box the direction from one point to the other to be used as the axis of rotation. But in this case we want to use the y axis instead of the custom axis produced, so select the y axis in that control. Set the angle to the desired angle.
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: how to rotate discretize edge result

Post by Cekuhnen »

I did select opposing points to find the geometrical center and then rotated around y

I have to try this again must have made a mistake
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: how to rotate discretize edge result

Post by TheMarkster »

Cekuhnen wrote: Sat Jul 24, 2021 3:58 pm I did select opposing points to find the geometrical center and then rotated around y

I have to try this again must have made a mistake
If you've already moved/rotated an object be sure to check "apply incremental changes" so that the new placement changes are applied to the object's current placement. Think of it as a way to incrementally place an object that has already been partially placed.

The Selected points button adds the center coordinates to the center controls. Do not check the Center of Mass checkbox afterwards or else the center coordinates populated by the Selected points button will get overwritten by the object's center of mass. I'm not sure if the discretized edge object actually has a center of mass as it is a feature python object. Part -> Check Geometry does not list this as a property of the discretized edge object, which could possibly be confusing the placement dialog's center of mass algorithm.

Check apply incremental changes checkbox.
Select the 2 opposite points.
Click Selected points button.
Change axis to Y.
Set desired angle.
Click Apply or Close.
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: how to rotate discretize edge result

Post by Cekuhnen »

Ah that makes sense - I will try that

Theoretically speaking I should be able to split the surface and rotate only the result and not the curve points.
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: how to rotate discretize edge result

Post by Vincent B »

Easy to do that. Just attach the circle normal to an edge. Then rotate it as need.
Attachments
Capture.JPG
Capture.JPG (55.37 KiB) Viewed 718 times
discretize-rotate.FCStd
(10.69 KiB) Downloaded 11 times
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: how to rotate discretize edge result

Post by Cekuhnen »

The attachment system works interestingly in Freecad
very logical but nested and a tick harder to grasp easily at first


Thank you all
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
Post Reply