mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-16 19:17:57 +01:00
97 lines
1.9 KiB
HTML
Executable File
97 lines
1.9 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<script src="../../list.js"></script>
|
|
<script src="../../page.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="../../page.css" />
|
|
</head>
|
|
<body>
|
|
<h1>[name]</h1>
|
|
|
|
<div class="desc">
|
|
Triangle face.
|
|
</div>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
<code>var normal = new THREE.Vector3( 0, 1, 0 );
|
|
var color = new THREE.Color( 0xffaa00 );
|
|
var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );</code>
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
<h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer materialIndex] )</h3>
|
|
<div>
|
|
a — Vertex A index.<br />
|
|
b — Vertex B index.<br />
|
|
c — Vertex C index.<br />
|
|
normal — Face normal or array of vertex normals.<br />
|
|
color — Face color or array of vertex colors.<br />
|
|
materialIndex — Material index.
|
|
</div>
|
|
|
|
<h2>Properties</h2>
|
|
|
|
<h3>[property:Integer a]</h3>
|
|
<div>
|
|
Vertex A index.
|
|
</div>
|
|
|
|
<h3>[property:Integer b]</h3>
|
|
<div>
|
|
Vertex B index.
|
|
</div>
|
|
|
|
<h3>[property:Integer c]</h3>
|
|
<div>
|
|
Vertex C index.
|
|
</div>
|
|
|
|
<h3>[property:Vector3 normal]</h3>
|
|
<div>
|
|
Face normal.
|
|
</div>
|
|
|
|
<h3>[property:Color color]</h3>
|
|
<div>
|
|
Face color.
|
|
</div>
|
|
|
|
<h3>[property:Array vertexNormals]</h3>
|
|
<div>
|
|
Array of 3 vertex normals.
|
|
</div>
|
|
|
|
<h3>[property:Array vertexColors]</h3>
|
|
<div>
|
|
Array of 3 vertex colors.
|
|
</div>
|
|
|
|
<h3>[property:Array vertexTangents]</h3>
|
|
<div>
|
|
Array of 3 vertex tangents.
|
|
</div>
|
|
|
|
|
|
<h3>[property:Integer materialIndex]</h3>
|
|
<div>
|
|
Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
|
|
</div>
|
|
|
|
<h2>Methods</h2>
|
|
|
|
<h3>[method:Face3 clone]()</h3>
|
|
<div>
|
|
Creates a new clone of the Face3 object.
|
|
</div>
|
|
|
|
|
|
<h2>Source</h2>
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
</body>
|
|
</html>
|