Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Improve SceneUtils page. #28234

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/examples/en/utils/SceneUtils.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,30 @@ <h3>[method:undefined sortInstancedMesh]( [param:InstancedMesh mesh], [param:Fun
and to reduce overdraw in opaque materials (front to back).
</p>

<h3>[method:Generator traverseGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverse]().
</p>

<h3>[method:Generator traverseVisibleGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverseVisible]().
</p>

<h3>[method:Generator traverseAncestorsGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverseAncestors]().
</p>

<h2>Source</h2>

<p>
Expand Down
24 changes: 24 additions & 0 deletions docs/examples/zh/utils/SceneUtils.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,30 @@ <h3>[method:undefined sortInstancedMesh]( [param:InstancedMesh mesh], [param:Fun
and to reduce overdraw in opaque materials (front to back).
</p>

<h3>[method:Generator traverseGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverse]().
</p>

<h3>[method:Generator traverseVisibleGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverseVisible]().
</p>

<h3>[method:Generator traverseAncestorsGenerator]( [param:Object3D object] )</h3>
<p>
object -- The 3D object to traverse.
</p>
<p>
A generator based version of [page:Object3D.traverseAncestors]().
</p>

<h2>源代码</h2>

<p>
Expand Down