1997Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Finding Space -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: Tue, 19 Aug 1997 00:21:18 +0000 -->
<!--X-Message-Id: 199708190019.RAA26446#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 33F46159.4AD97D09#sparta,mainstream.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Finding Space</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00656.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00658.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00656.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00556.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00657">Author</A>
&nbsp;|&nbsp;<A HREF="#00657">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00657">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Finding Space</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Finding Space</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Mon, 18 Aug 97 12:10:42 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In &lt;<A HREF="msg00603.html">33F46159.4AD97D09#sparta,mainstream.net</A>&gt;, on 08/15/97 
   at 10:18 AM, Michael Hohensee &lt;michael#sparta,mainstream.net&gt; said:

&gt;4-----------------------------
&gt;3------******--------**-------
&gt;2------******-----**-**--*****
&gt;1----*-******-----**-**-------
&gt;0-----------------------------
&gt; 0 2 4 6 8 1012
&gt;  1 3 5 7 9 11
&gt;'-' = empty space, '*' = space taken up by an object.

&gt;For simplicity, all objects take up a cubical volume of space
&gt;(square, in this case).  Objects are held in a tree or linked list of
&gt;structs which contain the origin point of the object, and the
&gt;dimensions of the object.  For example, the big square in the picture
&gt;above would be Location=6,1 -- Dimensions=6,3.

&gt;I can store anything to any location I want, but I want to avoid
&gt;overlapping objects onto each other (it's bad), so I need to be able
&gt;to find empty space between objects.  I can't just try to place an
&gt;object in every location, since there isn't any granularity to this
&gt;space (I use floats instead of ints).

I'm not clear on your problem:

  Do you want to determine if two objects as placed shared volume? 
(ie collision detection)

or:

  Do you want to determine a semi-optimal packing for shaped objects
within a space such that they don't share volumes?

The first is a standard solution is is pretty easy for regular shapes.
You may want to have a look at things like RAPID
(<A  HREF="http://www.cs.unc.edu/~geom/OBB/OBBT.html">http://www.cs.unc.edu/~geom/OBB/OBBT.html</A>).  They claim to be able to
rotate a 20,000 polygon torus in a 98,000 polygon landscape with full
collision detection in an average of 6.0ms on a mid-range SGI.

The latter question (filling a space) is a mess, a really really nasty
mess.  I know there are partial solutions.  I'm not aware of any
computationally cheap solutions.

-- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00603" HREF="msg00603.html">Finding Space</A></STRONG>
<UL><LI><EM>From:</EM> Michael Hohensee &lt;michael#sparta,mainstream.net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00656.html">Re: [MUD-Dev]  Finding Space</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00658.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00656.html">Re: [MUD-Dev]  Finding Space</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00556.html">[MUD-Dev]  Spellcaster, or Waving Hands</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00657"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00657"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  Finding Space</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00607" HREF="msg00607.html">Re: [MUD-Dev]  Finding Space</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Fri 15 Aug 1997, 18:12 GMT
<UL>
<LI><strong><A NAME="00654" HREF="msg00654.html">Re: [MUD-Dev]  Finding Space</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Mon 18 Aug 1997, 08:01 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00653" HREF="msg00653.html">Re: [MUD-Dev]  Finding Space</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Mon 18 Aug 1997, 07:48 GMT
<UL>
<LI><strong><A NAME="00656" HREF="msg00656.html">Re: [MUD-Dev]  Finding Space</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Mon 18 Aug 1997, 19:22 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00657" HREF="msg00657.html">Re: [MUD-Dev]  Finding Space</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 19 Aug 1997, 00:21 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00556" HREF="msg00556.html">[MUD-Dev]  Spellcaster, or Waving Hands</A></strong>, 
Cynbe ru Taren <a href="mailto:cynbe#laurel,actlab.utexas.edu">cynbe#laurel,actlab.utexas.edu</a>, Thu 14 Aug 1997, 17:50 GMT
<UL>
<LI><strong><A NAME="00583" HREF="msg00583.html">Re: [MUD-Dev]  Spellcaster, or Waving Hands</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 14 Aug 1997, 22:21 GMT
<UL>
<LI><strong><A NAME="00587" HREF="msg00587.html">Re: [MUD-Dev]  Spellcaster, or Waving Hands</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Thu 14 Aug 1997, 23:06 GMT
<UL>
<LI><strong><A NAME="00612" HREF="msg00612.html">Re: [MUD-Dev]  Spellcaster, or Waving Hands</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Fri 15 Aug 1997, 22:13 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>