To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.partsOpen lugnet.cad.dat.parts in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / 4377
4376  |  4378
Subject: 
Re: New primitive: chord.dat (not the final name)
Newsgroups: 
lugnet.cad.dat.parts, lugnet.cad.dev
Date: 
Sat, 21 Dec 2002 01:03:06 GMT
Viewed: 
1175 times
  
In lugnet.cad.dat.parts, Chris Dee writes:
In lugnet.cad.dat.parts, Tony Hafner writes:
Here's something I whipped up that I find extremely useful for patterned
parts in particular.  When trying to put something inside a circle (or
anywhere near a curved section), this lets you avoid 2 problems:
1: having to calculate the awkward intercept points of a
    line intersecting the surrounding segmented circle
2: the gap problem associated with doing so and then rendering
    it in POV-Ray

Sure, you only recover 50% of the surrounding square's area (~= 64% of the
disc's area)- but that's enough to do a lot.

It's a 90-degree "segment": the region between a subarc and a chord.  I
adapted the code from a quarter disc (by moving the 0,0,0 points to .5,0,.5)
and added conditional .POV code so that it comes out smoothly.


Tony Hafner
www.hafhead.com


I can see this having some use. I'd name it 1-4segm.dat.
Chris

Indeed. I was planning to do something similar myself. Hope it get's made
official.



Message is in Reply To:
  Re: New primitive: chord.dat (not the final name)
 
(...) I can see this having some use. I'd name it 1-4segm.dat. Chris (22 years ago, 18-Dec-02, to lugnet.cad.dat.parts, lugnet.cad.dev)

3 Messages in This Thread:

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

Custom Search

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