Skip to content

Commit

Permalink
BufferGeometry.toCreasedNormals() documentation: use more common HTML…
Browse files Browse the repository at this point in the history
… formatting & remove redundant info
  • Loading branch information
kpvhn committed Jul 5, 2023
1 parent b799d3d commit 1ea6198
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
22 changes: 12 additions & 10 deletions docs/examples/en/utils/BufferGeometryUtils.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,23 @@ <h3>[method:BufferGeometry mergeVertices]( [param:BufferGeometry geometry], [par
</p>

<h3>[method:BufferGeometry toCreasedNormals]( [param:BufferGeometry geometry], [param:Number creaseAngle] )</h3>
<p>
geometry -- The input geometry. <br />
creaseAngle -- The crease angle. <br /><br />
<ul>
<li>geometry -- The input geometry.</li>
<li>creaseAngle -- The crease angle.</li>
</ul>

<p>
Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
non-indexed geometry.<br /><br />
non-indexed geometry.
</p>

<p>
Returns the geometry with smooth normals everywhere except faces
that meet at an angle greater than the crease angle.<br /><br />

Backwards compatible with code that uses this method to operate on the original geometry.<br /><br />
that meet at an angle greater than the crease angle.
</p>

[page:BufferGeometry.toNonIndexed]() warns if the geometry is non-indexed and
returns <code>this</code>, i.e. the same geometry on which it was called:<br /><br />
<code>BufferGeometry is already non-indexed.</code>
<p>
Backwards compatible with code that uses this method to operate on the original geometry.
</p>

<h3>[method:BufferGeometry toTrianglesDrawMode]( [param:BufferGeometry geometry], [param:TrianglesDrawMode drawMode] )</h3>
Expand Down
23 changes: 12 additions & 11 deletions docs/examples/zh/utils/BufferGeometryUtils.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,23 @@ <h3>[method:BufferGeometry mergeVertices]( [param:BufferGeometry geometry], [par
</p>

<h3>[method:BufferGeometry toCreasedNormals]( [param:BufferGeometry geometry], [param:Number creaseAngle] )</h3>
<p>
geometry -- The input geometry. <br />
creaseAngle -- The crease angle.
</p>
<ul>
<li>geometry -- The input geometry.</li>
<li>creaseAngle -- The crease angle.</li>
</ul>

<p>
Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
non-indexed geometry.<br /><br />
non-indexed geometry.
</p>

<p>
Returns the geometry with smooth normals everywhere except faces
that meet at an angle greater than the crease angle.<br /><br />

Backwards compatible with code that uses this method to operate on the original geometry.<br /><br />
that meet at an angle greater than the crease angle.
</p>

[page:BufferGeometry.toNonIndexed]() warns if the geometry is non-indexed and
returns <code>this</code>, i.e. the same geometry on which it was called:<br /><br />
<code>BufferGeometry is already non-indexed.</code>
<p>
Backwards compatible with code that uses this method to operate on the original geometry.
</p>

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

0 comments on commit 1ea6198

Please sign in to comment.