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 / 1177
1176  |  1178
Subject: 
Re: Dimensions of the parts
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 12 Apr 1999 20:25:59 GMT
Reply-To: 
JSPROAT@nomorespamGEOCITIES.COM
Viewed: 
760 times
  
Anders Isaksson wrote:
- Scale the piece dimensions by 0.9 or something like that for
  comparisons - remember to use a _central_ point as origin
  for the scaling (hmm, sounds like heavy work...)
- Easier: Scale the positions with 1.01 before doing the
  comparison. Should be feasible, and not too much math.
  No need for modified origins either.

These only work for convex pieces.  The hollow areas in a concave piece
would not be handled properly, since at least one wall would actually move
*closer* to the other piece.

For example, consider a clip.  If you scale its position by 1.01, the piece
held by the clip would move away from the clip, and collide with the far end
of the clip.  Alternatively, if you scale the piece dimensions by 0.9, the
far end of the clip would move in relation to the center of the other piece,
and you'd have the same effect.

Consider also a 1x1 brick on top of a 1x16 brick.  If the 1x1 is located on
the end of the 1x16, well...  Same effect.

- Just don't include equality (=) in your collision test! (?)
  BTW, what is the minimum increment you can move/turn a piece?

This seems to me to be the best idea.  Allow planes on the surface of the
pieces to share the same space, but not the interiors of the same pieces.

Cheers,
- jsproat

--
Jeremy H. Sproat <jsproat@geocities.com>
http://www.geocities.com/SiliconValley/Horizon/5249/
"The world will not perish for want of wonders but for want of wonder"
-- British scientist J. B. S. Haldane (1892-1964)



Message has 3 Replies:
  Re: Dimensions of the parts
 
Sproaticus skrev i meddelandet <371256D6.4EEC8895@g...es.com>... (...) Yup, you caught me there... I'm mostly thinking in the BlockCAD universe, where the pieces _must_ be convex. (...) located on (...) But I should have thought of this anyhow :-( (...) (25 years ago, 12-Apr-99, to lugnet.cad.dev)
  Re: Dimensions of the parts
 
(...) This is the issue I was trying to describe a while back concerning a hypothetical "Copy Parallel Surface" tool... I never was able to put it so concisely... (...) Hmmm, this strikes me a pretty cool way to do a basic "snap to" function... (...) (25 years ago, 12-Apr-99, to lugnet.cad.dev)
  Re: Dimensions of the parts
 
(...) But how can the program know if a face from a piece is inside another piece ? I've been only testing for intersections between faces. Leonardo (25 years ago, 13-Apr-99, to lugnet.cad.dev)

Message is in Reply To:
  Re: Dimensions of the parts
 
Leonardo Zide skrev i meddelandet <3711E2FA.17EB08D@ce...com.br>... (...) to (...) - Scale the piece dimensions by 0.9 or something like that for comparisons - remember to use a _central_ point as origin for the scaling (hmm, sounds like heavy (...) (25 years ago, 12-Apr-99, to lugnet.cad.dev)

14 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