<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CG &#187; koilin</title>
	<atom:link href="http://cg.xplore.cn/archives/author/koilin/feed" rel="self" type="application/rss+xml" />
	<link>http://cg.xplore.cn</link>
	<description>李桂清图形学讨论组</description>
	<lastBuildDate>Mon, 12 Jul 2010 01:08:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>判断点是否在三角形所在三菱柱内</title>
		<link>http://cg.xplore.cn/archives/356</link>
		<comments>http://cg.xplore.cn/archives/356#comments</comments>
		<pubDate>Thu, 04 Mar 2010 12:19:17 +0000</pubDate>
		<dc:creator>koilin</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://cg.xplore.cn/?p=356</guid>
		<description><![CDATA[//判断一个点是否处于三角形的所在的空间三菱柱里
//已知空间中一点，以及三角形的三个顶点，三角形所处平面的法向
//返回整形数值，1：三菱柱内
//                              -1：三菱柱外
int PointIOTriangle(Point point, Point point1, Point point2, Point point3, CVector3d normal)
{
//三角形的三条边组成的向量
CVector3d vec1 = FormVector(point1, point3);
CVector3d vec2 = FormVector(point2, point1);
CVector3d vec3 = FormVector(point3, point2);
//三角形的三条边在三角形所在平面内的三个法向
CVector3d nor1 = [...]]]></description>
			<content:encoded><![CDATA[<p>//判断一个点是否处于三角形的所在的空间三菱柱里<br />
//已知空间中一点，以及三角形的三个顶点，三角形所处平面的法向<br />
//返回整形数值，1：三菱柱内<br />
//                              -1：三菱柱外<br />
int PointIOTriangle(Point point, Point point1, Point point2, Point point3, CVector3d normal)<br />
{<br />
//三角形的三条边组成的向量<br />
CVector3d vec1 = FormVector(point1, point3);<br />
CVector3d vec2 = FormVector(point2, point1);<br />
CVector3d vec3 = FormVector(point3, point2);<br />
//三角形的三条边在三角形所在平面内的三个法向<br />
CVector3d nor1 = vec1.Cross(normal);<br />
CVector3d nor2 = vec2.Cross(normal);<br />
CVector3d nor3 = vec3.Cross(normal);<br />
//三角形的三个顶点与空间中的任意点形成的三个向量<br />
vec1 = FormVector(point1, point);<br />
vec2 = FormVector(point2, point);<br />
vec3 = FormVector(point3, point);<br />
//三角形三条边上的法向分别与上述所求的三个向量的点积<br />
double dot1 = nor1.Dot(vec1);<br />
double dot2 = nor2.Dot(vec2);<br />
double dot3 = nor3.Dot(vec3);<br />
if (dot1 > .0 || dot2 > .0 || dot3 > .0)//点在三菱柱外<br />
{<br />
  return -1;<br />
}<br />
else<br />
{<br />
  return 1;//点在三菱柱内<br />
}<br />
}</p>
<p class="akst_link"><a href="http://cg.xplore.cn/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NnLnhwbG9yZS5jbi8/cD0zNTYmYW1wO2Frc3RfYWN0aW9uPXNoYXJlLXRoaXM="  title=\"可以通过E-mail分享, 用del.icio.us、Google等网络书签收藏！\" id=\"akst_link_356\" class=\"akst_share_link\" rel=\"nofollow\">SHARE POST</a>
</p><p>&copy;2010 <a href="http://cg.xplore.cn/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2NnLnhwbG9yZS5jbg==">CG</a>. All Rights Reserved.</p>. <img src="http://cg.xplore.cn/wp-content/plugins/feed-statistics.php?view=1&post_id=356" width="1" height="1" style="display: none;" /><hr />
<p><small>© koilin for <a href="http://cg.xplore.cn">CG</a>, 2010. |
<a href="http://cg.xplore.cn/archives/356">Permalink</a> |
<a href="http://cg.xplore.cn/archives/356#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://cg.xplore.cn/archives/356&title=判断点是否在三角形所在三菱柱内">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p><script type="text/javascript" src="http://js.tongji.linezing.com/1553424/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1553424/tongji.gif"/></a></noscript>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://cg.xplore.cn/archives/356/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>根据Mesh生成Cage的心历路程(1)</title>
		<link>http://cg.xplore.cn/archives/294</link>
		<comments>http://cg.xplore.cn/archives/294#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:41:09 +0000</pubDate>
		<dc:creator>koilin</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://cg.xplore.cn/?p=294</guid>
		<description><![CDATA[其实我想大家一开始肯定不明白“根据Mesh生成Cage”所谓何物。让我来慢慢和大家解说吧！
研一结束的第一个暑假，我开始了重心坐标的研究。故事也就是从“Mean Value Coordinates for Closed Trianglar Meshes”开始的。记得当时我完全不知道重心坐标是什么，就连三角形的重心坐标是怎么计算的都忘记了。当时李老师也只是和我解释了论文里面的伪代码，我似懂非懂地开始了重心坐标的(...)Read the rest of 根据Mesh生成Cage的心历路程(1) (28 words)

© koilin for CG, 2010. &#124;
Permalink &#124;
5 comments &#124;
Add to
del.icio.us

Post tags: 

Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>其实我想大家一开始肯定不明白“根据Mesh生成Cage”所谓何物。让我来慢慢和大家解说吧！</p>
<p>研一结束的第一个暑假，我开始了重心坐标的研究。故事也就是从“Mean Value Coordinates for Closed Trianglar Meshes”开始的。记得当时我完全不知道重心坐标是什么，就连三角形的重心坐标是怎么计算的都忘记了。当时李老师也只是和我解释了论文里面的伪代码，我似懂非懂地开始了重心坐标的(...)<br/>Read the rest of <a href="http://cg.xplore.cn/archives/294">根据Mesh生成Cage的心历路程(1)</a> (28 words)</p>
<hr />
<p><small>© koilin for <a href="http://cg.xplore.cn">CG</a>, 2010. |
<a href="http://cg.xplore.cn/archives/294">Permalink</a> |
<a href="http://cg.xplore.cn/archives/294#comments">5 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://cg.xplore.cn/archives/294&title=根据Mesh生成Cage的心历路程(1)">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p><script type="text/javascript" src="http://js.tongji.linezing.com/1553424/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1553424/tongji.gif"/></a></noscript>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://cg.xplore.cn/archives/294/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
