Search found 1286 matches

Go to advanced search

by Joel_graff
Sun Jun 16, 2019 3:14 am
Forum: Python scripting and macros
Topic: Parametric objects - guidance please
Replies: 4
Views: 179

Re: Parametric objects - guidance please

BTW, as you work through it, don't hesitate to ask more questions. Mastering FeaturePython objects really unlocks a lot of the cool things you can do with FreeCAD in Python. :)
by Joel_graff
Sun Jun 16, 2019 2:52 am
Forum: Python scripting and macros
Topic: Parametric objects - guidance please
Replies: 4
Views: 179

Re: Parametric objects - guidance please

tomkcook wrote:
Fri Jun 14, 2019 4:52 pm
Thanks! Believe it or not, I followed the instructions and it worked first time.
Sweet! Given that I wrote them, that actually means a lot! Thanks! :lol:
by Joel_graff
Sat Jun 15, 2019 10:54 pm
Forum: Developers corner
Topic: Release notes for v0.19
Replies: 106
Views: 6936

Re: Release notes for v0.19

by Joel_graff
Thu Jun 13, 2019 2:49 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

Hmmm.. looks like the curve direction is reversed when the orthogonal is calculated.

In geometry/spiral.py, try changing line 433 from:

Code: Select all

_vec.multiply(_x).normalize()
to:

Code: Select all

_vec.multiply(-_x).normalize()
and give it another shot.
by Joel_graff
Thu Jun 13, 2019 2:08 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

HakanSeven12 wrote:
Thu Jun 13, 2019 1:13 pm
Of course I can test it
Try again. I manged to get it working on my end. Probably something else I've forgotten, though.
by Joel_graff
Thu Jun 13, 2019 1:00 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

HakanSeven12 wrote:
Thu Jun 13, 2019 12:47 pm
Its ok for me
Cool. Also, I just pushed preliminary support for ortho / tangent vector calculations for spirals. Give it a shot. I haven't tested it, so it's just a guess as to whether or not it works. Since you've got a functioning test case, I figured I'd test it on you. :)
by Joel_graff
Thu Jun 13, 2019 12:36 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

You are right. I check it in C3D. The problem is when you look at the alignment you will see a lots of little line and arc. They lenght near 2m. Because they are exploded spirals. In road plan there is only one spiral-arc-spiral element. This issue is (somewhat) fixed. The invalid geometry is reduc...
by Joel_graff
Thu Jun 13, 2019 12:15 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

You are right. I check it in C3D. The problem is when you look at the alignment you will see a lots of little line and arc. They lenght near 2m. Because they are exploded spirals. In road plan there is only one spiral-arc-spiral element. Right. I never zoomed in on it to see what was actually happe...
by Joel_graff
Wed Jun 12, 2019 10:06 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

If you fit to view, you'll see the main alignment zooms out because there's an arc farther up. I think that arc is part of the alignment with the curve issue I mentioned
by Joel_graff
Wed Jun 12, 2019 8:20 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 770
Views: 43660

Re: Civil engineering feature implementation (Transportation Engineering)

I created it from plyline. Maybe this couse the problem. Its can't fit perfectly. In a case where there's a significant error in the data, the only thing I can propose is to simply replace the curve with a tangent connecting the starting and end points. That would allow the alignment to be imported...

Go to advanced search