Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] determine folding points on each wire and connect them #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

nm2107
Copy link
Owner

@nm2107 nm2107 commented Mar 12, 2023

Determine the folding points of each wire by considering straight lines start/end points, and chunks of edges that aren't straight lines.

Then, try to connect these points. The technique used here (which produces inedequate output) consists in projecting the points of a face on the other face and match the closest points.

C.f. https://forum.freecad.org/viewtopic.php?p=666788#p666788

Determine the folding points of each wire by considering straight lines
start/end points, and chunks of edges that aren't straight lines.

Then, try to connect these points. The technique used here (which
produces inedequate output) consists in projecting the points of a face
on the other face and match the closest points.

C.f. https://forum.freecad.org/viewtopic.php?p=666788#p666788
Try to implement buildFoldingLinesOnCurvedEdges from
buildFoldingLinesOnStraightEdges, but it doesn't lead to any satisfying
output.
Just committing it in order to continue research.
See https://forum.freecad.org/viewtopic.php?p=667765#p667765
fixes commit 7243258 .
Blindly inverting the tangent direction of straight lines ends was working for
some cases but not for others.
Using the continuous sorted edges array is a better solution.
Create cosmetic folding lines in the middle of straight edges. There is
no folding on such CosmeticFoldingLine, it is only used as a guide.
It would also be nice to draw them in a different color, but it seems
that changing a line color requires a `Part::Feature` object added to
the active document :/
cf https://forum.freecad.org/viewtopic.php?t=7335
@nm2107 nm2107 force-pushed the feat/sketches-selection-and-non-linear-edges-division branch from 9bd1298 to d360c95 Compare March 27, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant