# Numbering for sewing

(Pascal Golay) #37

Hello @alexkskim1 Here, the numbers are one way or the other - they -so far- do not flip in the middle of the edge… However, the direction does currently depend upon the surface direction - I can see that it’s probably OK to ignore this and use the World XY plane - I made it use the surface so that it would work with surfaces in any orientation, not just on the XY plane, but perhaps that is not necessary

At any rate - for now, use the `Dir` (Analyze menu > Direction) or `ShowDir` commands to make sure the surface UV directions correspond to the ‘Right hand rule’ (this is the natural UV and Normal direction of the surface).

U = X. V = Y, Normal = Z

It is one step more complicated on Rhino surfaces because the normal can be flipped - but for now ignore the normal (white) arrow- what counts are the U and V, the natural normal is determined by these. As far as I can see all the text comes out correct if the surfaces’ natural normal is up. I’ll see if I can make this easier,

Good, natural normal is up:

Bad, natural normal is down:

As for the script error- that is my fault - sorry! I was experimenting with adding actual text and I left one line still active - the script is updated.

-Pascal

(Pascal Golay) #38

I’m chipping away at just letting it use closed planar curves in World XY to avoid the whole direction problem … this has its own set of complications…

-Pascal

(Fragged8) #39

I too appreciate the huge amount of work you are doing on this script Pascal, It will be very helpful to me as well… . you rock !!

(Pascal Golay) #40

It’s an adventure - not what anticipated but it’s hard to drop it just short of being useful…

-Pascal

(Fragged8) #41

do you do this on top of a 9 to 5 job ?

(Pascal Golay) #42

Work here at McNeel? Yes. Make elaborate scripts that I hope will work eventually… no…

=)

-Pascal

(Fragged8) #43

hehe, keep up the great work helping us noobs You and the other awesome guys and gals who help us new guys find our way around take a massive amount of frustration out of learning Rhino …

(Pascal Golay) #44

@alexkskim1, @fragged8, @jaybee63 - something to try, if you get bored:

This one takes closed planar curves in WorldXY as input and creates the offset and adds the numbering if asked… direction should not be an issue any more.

• Numbering is added inside the offset
• Hashmarks are only in the offset.

No doubt there are things to fix here as well - but have a try - with the feedback I’m getting, I think this might be getting close to useful. If you find curves that throw an error, please post those - I’ve covered at least the most likely curve types, I think, but you never know.

@fragged8, @alexkskim1, @jaybee63 - small tweak added to allow closed planar curves in any orientation and location. Let me know if I broke anything…

@fragged8, @alexkskim1, @jaybee63 - added font setting and extensions of the hash marks setting. Also just added a ‘Hole=Yes/No’ option. If Yes, then the offsets are to the inside of the closed curve.

-Pascal

(Alexkskim1) #45

It is very very very great and nice of you, even though I do not know how difficult it is. I will get back to you. thanks again.

(Alexkskim1) #46

Hello Pascal!!! Any great outcome on text on the edge marker?

(Alexkskim1) #47

In the meantime, my head designer tells me that your last solution is working very well except open curve.

For instance, he cuts the half of circle(open curve) and do numbering like closed planar curves. But he haven’t made it yet. Please help him again.

For your reference, I am attaching a file.

ThanksSample4.3dm (1.5 MB)

(Pascal Golay) #48

@alexkskim1 I am out of town until next week. I’ll take a look then.
-Pascal

(Alexkskim1) #49

THANKS!!! Pascal

(Fragged8) #50

I have a large job that might be able to use your script on Pascal, i’ll let you know how I get on…

(Alexkskim1) #51

@fragged8 thanks…I look forward to it.

(Pascal Golay) #52

Right now, it looks like one way or another the workflow will need to be at least slightly more complex-

• To allow open curves, there needs to be a direction option. I do not see any good way to guess reliably. ( I assumed there would always be a closed loop of curves when dealing with fabric edges)

• To allow offsetting to holes in the fabric, there also needs to be a direction option of some kind- currently marking holes will go the ‘wrong’ way, onto the part.
This is done in the code linked above.

• There’s a request to be able to extend the markers to the inside as well as the current behavior of adding them on the outside.
This is done in the code linked above.

• It should be possible to select the font.
@alexkskim1, @fragged8, @jaybee63 - the code above is updated with my first try at setting the font - let me know… I’ll add it to the seam marker as well. Single stroke fonts are filtered to the top of the list.

• Text… this might be hard to get right, believe it or not.

-Pascal

(Alexkskim1) #53

Hi @fragged8!

Any good news for us?

(Alexkskim1) #54

Hi! Pascal! Long Time. It is too hot here in Korea. Everybody is going to exhausted. Can I ask any good news on open curves? That is the very last step to solve our problem, I believe. Let me ask one silly question. It is hard to make no. 75 on the attached file to text like No.1?

(Fragged8) #55

Unfortunately no news, I made the large building with my old method as my schedule for delivery was very tight, I hope to find another job to use this method soon.

Richard

(Alexkskim1) #56

Hi @fragged8!

Thanks…Richard