Browse Source

Update GeometryUtils.html

deepan2k5 12 years ago
parent
commit
3a8c43731a
1 changed files with 91 additions and 3 deletions
  1. 91 3
      docs/api/extras/GeometryUtils.html

+ 91 - 3
docs/api/extras/GeometryUtils.html

@@ -9,7 +9,7 @@
 	<body>
 		<h1>[name]</h1>
 
-		<div class="desc">todo</div>
+		<div class="desc">Contains essential function for the geometry manipulations </div>
 
 
 		<h2>Constructor</h2>
@@ -24,10 +24,98 @@
 
 		<h2>Methods</h2>
 
-		<h3>.todo( [page:Vector3 todo] )</h3>
+		<h3> .merge( [page:Geometry geometry1] , [page:Geometry geometry2] )</h3>
 		<div>
-		todo — todo<br />
+		geometry1 — Parent geomentry element <br />
+		geometry2 — Geometry that need to be added in parent <br />
 		</div>
+		
+		<h3> .removeMaterials( [page:Geometry geometry1] , [page:Material materialIndexArray] )</h3>
+		<div>
+		geometry — Geometry that need to remove material <br />
+		materialIndex — Material index<br />
+		</div>
+		
+		<h3> .randomPointInTriangle( [page:Vector VectorA] , [page:Vector VectorB]  , [page:Vector VectorC])</h3>
+		<div>
+		VectorA — Vector  <br />
+		VectorB — Vector  <br />
+		VectorC — Vector  <br />
+		 
+		 returns [page:Int Point]
+		 
+		</div>
+		
+		<h3> .randomPointInFace( [page:face Face] , [page:geometry Geometry]  , [page:Boolean useCachedAreas])</h3>
+		<div>
+		Face — Face id<br />
+		Geometry — Geometry that contains the Face  <br />
+		useCachedAreas — Flag to use cached areas. Default : False  <br />
+		 
+		 returns [page:Int Point]
+		 
+		</div>
+		
+		<h3> .randomPointsInGeometry( [page:geometry Geometry]  , [page:Integer Points])</h3>
+		<div>
+		Geometry — Geometry  <br />
+	
+		 returns [page:Int Point]
+		 
+		</div>
+		
+		<h3> .binarySearchIndices(  [page:Integer Value] )</h3>
+		<div>
+		Value — Value to search in indices  <br />
+		
+		returns [page:Int Position]
+		</div>
+		
+		<h3> .triangleArea ( [page:Vector VectorA] , [page:Vector VectorB]  , [page:Vector VectorC]) </h3>
+		
+		<div>
+		VectorA — Vector  <br />
+		VectorB — Vector  <br />
+		VectorC — Vector  <br />
+		 
+		returns [page:Int Area]
+		 
+		</div>
+		
+		<h3> .center ( [page:geometry Geometry] ) </h3>
+		
+		<div>
+		
+		Geometry — Geometry to Center position
+		
+		</div>
+		
+		<h3> .normalizeUVs ( [page:geometry Geometry] ) </h3>
+		
+		<div>
+		
+		Geometry — Geometry to normalize UVS <br />
+		
+		</div>
+		
+		<h3> .triangulateQuads ( [page:geometry Geometry] ) </h3>
+		
+		<div>
+		
+		Geometry — Geometry to triangulate Quads <br />
+		
+		</div>
+		
+		<h3> .setMaterialIndex ( [page:geometry Geometry] , [page:Integer index], [page:Face startFace], [page:Face endFace]) </h3>
+		
+		<div>
+		
+		Geometry — Geometry <br />
+		Index — New index value for the material <br />
+		startFace — Starting range of Face <br />
+		endFace — Final range of Face  <br />
+		
+		</div>	
 
 
 		<h2>Source</h2>