To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.parts.primitivesOpen lugnet.cad.dat.parts.primitives in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / Primitives / 353
352  |  354
Subject: 
Re: Stud5 and type 5 lines at edge of cylinders.
Newsgroups: 
lugnet.cad.dat.parts.primitives
Date: 
Sun, 17 Aug 2003 18:03:31 GMT
Viewed: 
3472 times
  
In lugnet.cad.dat.parts.primitives, Don Heyse wrote:
In lugnet.cad.dat.parts.primitives, Mark Kennedy wrote:
I recently reworked the stud 5 primitive to make use of more quarter
cylinders.  I then noticed that when viewed there were edge lines
apearing where they shouldn't. If you look at the primitive from
various points you can see this occur.

Ahh, the dreaded S-curve cylinder join rears it's ugly head again.
I voted to ignore this a while back and gave my reasons.

http://news.lugnet.com/cad/dev/?n=7192

Nobody disagreed at the time.

Is there a reason that the cylinder primitives haven't been updated to work like
the sphere primitive?  As long as there are type 5 lines on both ends of each
partial cylinder, and the control point out in space is tangent to the cylinder
instead of being at the next point on the cylinder approximation, the problem
goes away.

It's kind of difficult to explain, but the two joining type 5 lines cooperate to
product correct rendering when two cylinders are connected, and it gets rid of
this problem on S-curves and when cylinders are joined to non-cylinders (say if
you want to have a rounded corner).  LDView actually does this when it uses
primitive substitution on cylinder primitives, and the phantom line doesn't
appear.

This was discussed here:

http://news.lugnet.com/cad/dev/?n=7176

Note that it's tough to understand at first; you may have to read a large part
of the thread, but the article I linked to has the short description.  My vote
would be to update the partial cylinder primitives.  Note that the partial
sphere primitive is already coded in this way; I'm not sure why the partial
cylinder primitives aren't.

--Travis Cobbs



Message has 1 Reply:
  Re: Stud5 and type 5 lines at edge of cylinders.
 
(...) I don't think the S curve problem goes away. The tangent control point works perfectly for two (same radius) curves that both curl in the same direction. It also works perfectly for a curve joining a flat edge along the tangent. However it (...) (21 years ago, 17-Aug-03, to lugnet.cad.dat.parts.primitives)

Message is in Reply To:
  Re: Stud5 and type 5 lines at edge of cylinders.
 
(...) Ahh, the dreaded S-curve cylinder join rears it's ugly head again. I voted to ignore this a while back and gave my reasons. (URL) disagreed at the time. Don (21 years ago, 15-Aug-03, to lugnet.cad.dat.parts.primitives)

10 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR