Skip to content

Commit f152758

Browse files
committed
Added apply modifier method.
1 parent 83d887a commit f152758

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/mesh/Mesh3D.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import math.Mathf;
99
import math.Matrix3f;
1010
import math.Vector3f;
11+
import mesh.modifier.IMeshModifier;
1112
import mesh.modifier.RemoveDoubleVerticesModifier;
1213
import mesh.util.Bounds3;
1314

@@ -24,6 +25,10 @@ public Mesh3D() {
2425
vertices = new ArrayList<Vector3f>();
2526
faces = new ArrayList<Face3D>();
2627
}
28+
29+
public void apply(IMeshModifier modifier) {
30+
modifier.modify(this);
31+
}
2732

2833
public void updateFaceNormals() {
2934
for (Face3D face : faces) {

0 commit comments

Comments
 (0)