To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 8092
8091  |  8093
Subject: 
Re: New primitive: chord.dat (not the final name)
Newsgroups: 
lugnet.cad.dat.parts, lugnet.cad.dev
Date: 
Wed, 18 Dec 2002 18:49:25 GMT
Viewed: 
71 times
  
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



Message has 1 Reply:
  Re: New primitive: chord.dat (not the final name)
 
(...) Indeed. I was planning to do something similar myself. Hope it get's made official. (22 years ago, 21-Dec-02, to lugnet.cad.dat.parts, lugnet.cad.dev)

Message is in Reply To:
  New primitive: chord.dat (not the final name)  [DAT]
 
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 (...) (22 years ago, 17-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

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