diff --git a/docs/examples/en/modifiers/EdgeSplitModifier.html b/docs/examples/en/modifiers/EdgeSplitModifier.html new file mode 100644 index 00000000000000..9584f2e5716e6e --- /dev/null +++ b/docs/examples/en/modifiers/EdgeSplitModifier.html @@ -0,0 +1,67 @@ + + +
+ ++ [name] is intended to modify the geometry "dissolving" the edges to give a smoother look. +
+ ++ [name] is an add-on, and therefore must be imported explicitly. + See [link:#manual/introduction/Installation Installation / Addons]. +
+ +
+ import { EdgeSplitModifier } from 'three/addons/modifiers/EdgeSplitModifier.js';
+
+
+
+ const geometry = new THREE.IcosahedronGeometry( 10, 3 );
+ const modifier = new EdgeSplitModifier();
+ const cutOffAngle = 0.5;
+ const tryKeepNormals = false;
+
+ modifier.modify( geometry, cutOffAngle, tryKeepNormals );
+
+
+ [example:webgl_modifier_edgesplit misc / modifiers / EdgeSplit ]
+ ++ Create a new [name] object. +
+ +
+ Using interpolated vertex normals, the mesh faces will blur at the edges and appear smooth.
+
+ You can control the smoothness by setting the `cutOffAngle`.
+
+ To try to keep the original normals, set `tryKeepNormals` to `true`.
+
+ [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/modifiers/EdgeSplitModifier.js examples/jsm/modifiers/EdgeSplitModifier.js] +
+ + diff --git a/docs/list.json b/docs/list.json index 807ff542572637..1791907b01ee60 100644 --- a/docs/list.json +++ b/docs/list.json @@ -404,6 +404,10 @@ "Timer": "examples/en/misc/Timer" }, + "Modifiers": { + "EdgeSplit": "examples/en/modifiers/EdgeSplitModifier" + }, + "ConvexHull": { "Face": "examples/en/math/convexhull/Face", "HalfEdge": "examples/en/math/convexhull/HalfEdge",