Shoelast

Post here for help on using FreeCAD's graphical user interface (GUI).
Leatherman
Posts: 88
Joined: Thu Feb 02, 2017 2:49 pm

Re: Shoelast

Postby Leatherman » Wed Feb 15, 2017 4:16 pm

microelly2 wrote:
Leatherman wrote:HI,
just have a look, this is how it looks. I've designed the upper over a last and once this creation is ready it will be combined with the sole.
What I feel, and may be I'm wrong, we are having sole and upper, but not the last. What do you think?
Regards
Andre

The sole will be the green part
The upper will be the blue with some offset

What do you mean with "last"? The red foot?
yes, it's called the shoe last or "Schuhleisten", as you know, "Schuster bleib bei deinen Leisten"
between the foot and the parts there is only a offset, having the data for the ones we have the data for the other too.
Well, basically this is correct, It's interesting to see where is your approach leading to. In the classical way you need to create the shoe last first, than create the upper part and sole. But CAD leaves us with other options as well, so why not? let me know if you need further input for the heel design.

Regards
Andre
User avatar
microelly2
Posts: 2453
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Shoelast

Postby microelly2 » Wed Feb 15, 2017 11:01 pm

Thank you for the explanations, meanwhile I played a bit with the upper part.
Simple algebraic operations give me the slipper layout.
Tomorrow I will look at the heel.
Attachments
bp_375.png
bp_375.png (26.34 KiB) Viewed 336 times
Leatherman
Posts: 88
Joined: Thu Feb 02, 2017 2:49 pm

Re: Shoelast

Postby Leatherman » Thu Feb 16, 2017 4:07 am

Hi,
that looks certainly like a shoe project, very nice!
I have upgraded:
OS: Windows 10
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10091 (Git)
Build type: Release
Branch: master
Hash: 3076b5938f3af5b7a3375c6aa8471bbacb9d6c4a
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

Still I'm getting some errors in your script. I have attached it, kindly check where my problem is. Hope that would not take too much of your time.
Regards
Andre
Attachments
gen_shoe_Probs.txt
(5.77 KiB) Downloaded 10 times
User avatar
microelly2
Posts: 2453
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Shoelast

Postby microelly2 » Thu Feb 16, 2017 1:45 pm

https://www.dropbox.com/s/wjvcrzqm49pr4 ... _4.py?dl=0
https://www.dropbox.com/s/5y19hgal8g6iz ... fcstd?dl=0

The blue lines illustrate the used data points.
I have reduced the data set to a minimum (in my understanding of a shoe)

bp_376.png
bp_376.png (120.84 KiB) Viewed 307 times


see the new script, I cannot reproduce the indent error,
lets test the new and hope that it will run.
check please whether you need more data for design
then we can start a UI design for data input
Leatherman
Posts: 88
Joined: Thu Feb 02, 2017 2:49 pm

Re: Shoelast

Postby Leatherman » Thu Feb 16, 2017 3:15 pm

Hello,
looks like you've been very busy. Well, with the script I'm not sure, it doesn't show any mistakes, this is what I get. Is it fine?
Attachments
shoelast1.png
shoelast1.png (19.87 KiB) Viewed 294 times
User avatar
microelly2
Posts: 2453
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Shoelast

Postby microelly2 » Thu Feb 16, 2017 3:40 pm

That is not enough :shock:
when I run the script I get a lot of objects:
bp_377.png
bp_377.png (132.25 KiB) Viewed 286 times

Have you done a Menu Edit -> Refresh?
Is there a message in the report window?
Leatherman
Posts: 88
Joined: Thu Feb 02, 2017 2:49 pm

Re: Shoelast

Postby Leatherman » Thu Feb 16, 2017 3:47 pm

Will try again. Shall I copy and past the entire code once, or shall I do certain breaks?
No, two times- same result. It did not show any mistake either. I think it's not doing import numpy... no idea what it is, do we need this? If you ask for import I guess we need this! Kindly advice me on this.
Regards
Andre
Last edited by Leatherman on Thu Feb 16, 2017 3:56 pm, edited 1 time in total.
User avatar
microelly2
Posts: 2453
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Shoelast

Postby microelly2 » Thu Feb 16, 2017 3:52 pm

please copy the complete trace.
but I'm now offline for some hours.
Leatherman
Posts: 88
Joined: Thu Feb 02, 2017 2:49 pm

Re: Shoelast

Postby Leatherman » Thu Feb 16, 2017 3:59 pm

Here we go. I have my dinner now!
Attachments
Trace.txt
(12.91 KiB) Downloaded 11 times
User avatar
microelly2
Posts: 2453
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Shoelast

Postby microelly2 » Thu Feb 16, 2017 8:20 pm

I think you have not pressed the enter key after pasting the script into the python console, so the 2nd part of the script was not executed

I missed this ending in your trace:

.. Draft.makeWire(pts)
... App.ActiveDocument.ActiveObject.ViewObject.LineColor=(.0,.0,1.0)
...
... lfs2=lfs2.swapaxes(0,1)
... for l in lfs2:
... pts=[FreeCAD.Vector(p) for p in l]
... #Draft.makeBSpline(pts)
... Draft.makeWire(pts)
... App.ActiveDocument.ActiveObject.ViewObject.LineColor=(.0,.0,1.0)
...
<Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject><Part::Part2DObject>
>>>