Skip to content

Commit b799d3d

Browse files
committed
update BufferGeometry.toCreasedNormals() documentation
1 parent ccbb6f3 commit b799d3d

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

docs/examples/en/utils/BufferGeometryUtils.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,17 @@ <h3>[method:BufferGeometry toCreasedNormals]( [param:BufferGeometry geometry], [
126126
geometry -- The input geometry. <br />
127127
creaseAngle -- The crease angle. <br /><br />
128128

129-
Creates a new, non-indexed geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.
129+
Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
130+
non-indexed geometry.<br /><br />
131+
132+
Returns the geometry with smooth normals everywhere except faces
133+
that meet at an angle greater than the crease angle.<br /><br />
134+
135+
Backwards compatible with code that uses this method to operate on the original geometry.<br /><br />
136+
137+
[page:BufferGeometry.toNonIndexed]() warns if the geometry is non-indexed and
138+
returns <code>this</code>, i.e. the same geometry on which it was called:<br /><br />
139+
<code>BufferGeometry is already non-indexed.</code>
130140
</p>
131141

132142
<h3>[method:BufferGeometry toTrianglesDrawMode]( [param:BufferGeometry geometry], [param:TrianglesDrawMode drawMode] )</h3>

docs/examples/zh/utils/BufferGeometryUtils.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,17 @@ <h3>[method:BufferGeometry toCreasedNormals]( [param:BufferGeometry geometry], [
125125
creaseAngle -- The crease angle.
126126
</p>
127127
<p>
128-
Creates a new, non-indexed geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.
128+
Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
129+
non-indexed geometry.<br /><br />
130+
131+
Returns the geometry with smooth normals everywhere except faces
132+
that meet at an angle greater than the crease angle.<br /><br />
133+
134+
Backwards compatible with code that uses this method to operate on the original geometry.<br /><br />
135+
136+
[page:BufferGeometry.toNonIndexed]() warns if the geometry is non-indexed and
137+
returns <code>this</code>, i.e. the same geometry on which it was called:<br /><br />
138+
<code>BufferGeometry is already non-indexed.</code>
129139
</p>
130140

131141
<h3>[method:BufferGeometry toTrianglesDrawMode]( [param:BufferGeometry geometry], [param:TrianglesDrawMode drawMode] )</h3>

0 commit comments

Comments
 (0)