Simplify lines or arcs
 1-20  21-25

Next
 From:  George (GKSL4)
2051.1 
Hi Michael,

It is possible to add in the wishing list a script or custom command for simplifying lines or arcs, like Rhino?
I searched forum but did not found anything about it. I am sorry if I missed something.

Many thanks,


George

EDITED: 8 Oct 2008 by GKSL4

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Paolo (PAOLOLOBBIA)
2051.2 In reply to 2051.1 
Hi George,

I guess you are talking about Change Degree in Rhino3d

In Moi3d you could place a point object at one end of the
curve and then use the Array Curve command.
Then reconstruct the curve with Curve through points
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  George (GKSL4)
2051.3 In reply to 2051.2 
Hi Paolo,

Thank you for your answer, but I mean with simplifying lines to get rid of existing extra points on lines that they don't affect the geometry.
For example, if a line is divided in various parts, using simplify line, you get a line with only two points.

Regards,


George
Image Attachments:
Size: 50.4 KB, Downloaded: 100 times, Dimensions: 642x462px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  PaQ
2051.4 In reply to 2051.3 
Hi George,

I'm not sure if it's a good idea, but my workaround for this is to separate everything, then I do a boolean/union ...
Of course it's just to simplify the surface, not the curve.

EDITED: 9 Oct 2008 by PAQ

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.5 In reply to 2051.1 
Hi George, I've added that to the wishlist for now but it should not be too hard to add that in at some point here.

One piece that has to happen first is finishing up the "Object properties" panel, which I think will also have a place on it to pull up a menu of a variety of advanced tools. That will give me a place in the UI to add tools like this.


Paolo - this would be like the SimplifyCrv command that I put in Rhino, it is different than ChangeDegree, it is for taking a curve that is made up of many segments and merging colinear lines into single larger lines, and arc fragments that are arcs of the same circle into larger single arc segments.


And yes like PaQ mentions currently the easiest workaround is to use Edit/Separate followed by a Construct/Boolean/Union - Union has stuff in it to merge those planes together into single larger planes. Or if you want to work at the curve level currently you currently would have to select control points for the internal points and delete them.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  George (GKSL4)
2051.6 In reply to 2051.5 
Thanks Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Paolo (PAOLOLOBBIA)
2051.7 In reply to 2051.5 
Hi Michael,

>> SimplifyCrv command

Yes I forgot that,i have tried it but i doesn't give
a great result
The FitCurve command is much better

>>The Edit/Separate followed by a Construct/Boolean/Union - Union

I have tried it on a complicated surface and it works great

Thanks PAQ
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.8 In reply to 2051.7 
Hi Paolo,

>> SimplifyCrv command

> Yes I forgot that,i have tried it but i doesn't give
> a great result
> The FitCurve command is much better

FitCrv is used for a much different purpose.

For example, starting with this polyline that has has spans made up of several colinear line segments (note the internal points):



SimplifyCrv produces this result:



FitCrv produces this result:




If you wanted to simplify the line structure to only get the minimal number of points and segments, but still keep the overall shape the same, that is what SimplifyCrv will do. FitCrv fits a new smooth curve through sampled points along that original curve and as you can see the result does not have any line segments in it anymore.

They are used for different situations.

- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  steve (STEEVE)
2051.9 In reply to 2051.8 
Just a little confused here whether we're talking about Rhino or MoI! I'm assuming SimplifyCrv belongs to Rhino?

Michael, do I understand correctly that (currently) if I want to simplify a curve (not a surface) I must remove points manually?

I am working on a way to incorporate embossed lettering onto a flat surface (subject for another thread perhaps).
I have traced the letters from a background image in MoI (using as few points as possible). The problem is that the Offset command (which does a great job) generates curves with far too many points.

I have been thinning them out manually, but seeing this thread made me think there may be a better way??
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
2051.10 In reply to 2051.9 
Steve
Is this something in the style of end result you will need?
Brian

EDITED: 31 Dec 2008 by BWTR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.11 In reply to 2051.9 
Hi Steve, sorry yes that last part about SimplifyCrv and FitCrv was about Rhino and not MoI (screenshots there were Rhino screenshots).

Right now Offset is oriented towards getting an accurate (and as a side effect heavier) result, when I get a chance to spend some time on that, it should be possible for me to tune that up to reduce the density at least somewhat. But it is a bit of a tricky thing to do it and maintain a good amount of accuracy.

Eventually there will be some commands in MoI for reconstructing a curve, like Rhino's FitCrv or Rebuild commands, but those are not present in MoI quite yet though.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  steve (STEEVE)
2051.12 In reply to 2051.10 
Yes Brian

That's about what I'm aiming for. What process did you use? Does your flat sheet have thickness?
I'll probably fillet some of the edges.

The object will eventually be produced in a vacuum moulding process from 3 or 4mm thick ABS (probably) sheet. So part of the problem is to try and predict how small the letters can be before we start losing definition.

Steve
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  steve (STEEVE)
2051.13 In reply to 2051.11 
OK, Thanks Michael.

The workaround with Separate and then Boolean Union...I think that doesn't work on curves right?...what objects would that work on?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.14 In reply to 2051.13 
Hi Steve,

> what objects would that work on?

It works on surfaces that are made up of several smaller planes touching each other edge-to-edge, like this:



After that procedure, those get cleaned up to be only one big plane:



It basically can "heal" many small planar bits into larger single planes.

- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.15 In reply to 2051.9 
Hi Steve, also one thing that I'm not quite clear on is why are you concerned about the number of points of the Offset result for the particular case that you are working on, are you trying to do additional control point edits to the curve?

You may be interested in this method of doing a tapered style extrude:
http://moi3d.com/forum/index.php?webtag=MOI&msg=941.5

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  steve (STEEVE)
2051.16 In reply to 2051.15 
Thanks for that clarification Michael

My concern about the number of points is rooted in some vague belief that the file which is to be input to the prototyping machine shouldn't be unnecessarily large. For all I know it may not be an issue!

Also, I'm thinking that if I later perform some boolean operations, a smaller number of points would be better.

The tapered extrude will be very useful.

There are so many jewels hidden in this forum...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2051.17 In reply to 2051.16 
Hi Steve, a smaller number is definitely more efficient in file size, but unless you're getting up to like 10,000 of these offsets you probably don't have to worry about it.

Many of the later on operations that are going to be performed on your objects (like meshing or toolpath generation) will generally follow the shape of your object and not automatically become more complicated just because there are more control points in the curves. Instead they will be more complicated in areas of high curvature, not just automatically where there are a higher number of points.

It is particularly not convenient to have a whole bunch of points if you want to edit the shape of the offset curve by tweaking control points around, similar to how you would have edited the very original curve. But for the thing that you're talking about, you probably won't be doing that. Typically for the kind of thing that I think you're doing you would focus your effort on editing the original curve to make it shaped right and not want to edit the resulting offset curve, it is just a thing that is calculated from your edited one.

I'd think that you could probably just not worry about that particular thing for your case...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  steve (STEEVE)
2051.18 In reply to 2051.17 
Yes, point taken Michael

After all it is going to be relatively quite a small file.

Thanks again

Steve
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
2051.19 In reply to 2051.18 
Steve
The "sheet" has no thickness.
All I did was to lower the standard 3d letters just a fraction through the sheet and then did some booleans and trim stuff.
Brian
EDIT--No booleans--all cut and trim!

EDITED: 31 Dec 2008 by BWTR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
2051.20 In reply to 2051.15 
Hi Michael,

>>You may be interested in this method of doing a tapered style extrude:
http://moi3d.com/forum/index.php?webtag=MOI&msg=941.5

In relation to this thread I was just wondering now that we have direct math input in MoI, you mentioned that angle input is in radians, the formula you used in that particular thread to create tapers, is 'Offset dist = Height x Tan( angle )' which is used often in mech eng and nice and easy to input into MoI, but to convert to radians which is: degrees X pi/180 it's a bit annoying is there any way to change the angle input in MoI to degrees ?

Thanks
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-25