Re: Best fit of polygon inside another polygon

"Emil Persson" <[email protected]>
Newsgroups gmane.games.devel.algorithms
Message-ID <001501c9db0b$024db4e0$06e91ea0$@se>
I'm tired and I have a headache, but if I understand your problem right then
it sounds like a special case of a problem I just solved last night and
wrote a tool for:

http://www.humus.name/index.php?page=News
<http://www.humus.name/index.php?page=News&ID=266> &ID=266

 

So you'd just input your polygon directly (instead of inputting a particle
texture and generate a polygon from that) and optimize for 4 vertices and
that would solve it, no?

 

-Emil

 

 

From: [email protected] [mailto:[email protected]] 
Sent: 22 May 2009 14:59
To: Game Development Algorithms
Subject: [Algorithms] Best fit of polygon inside another polygon

 

Hi,

I've been thinking about an algorithm which fits a given polygon into a
quad. I've stumbled upon this while trying to fit the largest possible
polygon out of a set of different polygons into a quadliteral. What I want
to find is the best-fit-polygon which can be contained completely in the
quadliteral. The polygon and quad can be assumed to be convex. An nice
feature would be to calculate the error as a function of the area which
doesn't fit into the quad for every polygon I throw at the quad.

I'm working in 2D right now, but might want to expand the problem for a
later application into a 3D case (fit a polyhedra into a hexahedron). 

Any ideas how to solve this problem?

Stefan

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com

_______________________________________________
GDAlgorithms-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.