Draft PathArray along complex BSpline does not finish

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
usa
Posts: 1
Joined: Mon Dec 06, 2021 12:36 pm

Draft PathArray along complex BSpline does not finish

Post by usa »

FreeCAD 0.19, both macOS and Windows x64.

If I create a PathArray of 10 000 circles along a straight line, it takes a couple of seconds to complete.
If I create a PathArray of 4 circles along a complex BSpline (around 3 000 points), it takes about a minute to complete.
If I try to create a PathArray of 10 000 circles along the BSpline, it takes forever.

Any workaround?
What is the cause? Does it calculate a distance from the VERY beginning of the BSpline for EVERY point?
Attachments
Test.FCStd
(484.81 KiB) Downloaded 16 times
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft PathArray along complex BSpline does not finish

Post by Roy_043 »

Calculating the distance is the easy part, it is calculating the position from the distance that is the costly operation here. The only solution I can think of is to remodel. The spherical shape has 20 similar sections. Modeling one such section may be the way to go. When finished the Draft_PolarArray command can be used to create the full shape.
Post Reply