Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
df28430
Implementation of a ripple modifier.
ArtifactForms Dec 5, 2024
fb6e3e1
Added fmod method.
ArtifactForms Dec 5, 2024
3250eae
Refactor RippleModifier to include direction and improve phaseShift
ArtifactForms Dec 5, 2024
8930498
Added test cases.
ArtifactForms Dec 5, 2024
7ec66b0
Refactor RippleModifierTest: Improved test clarity.
ArtifactForms Dec 5, 2024
11f8e95
feat: add normalizeAngle method to Mathf class
ArtifactForms Dec 5, 2024
07801c1
Refactoring. Performance: Avoid new list creation.
ArtifactForms Dec 5, 2024
ffc2380
Refactoring. Performance: using parallelStream
ArtifactForms Dec 5, 2024
3f3c0c2
Implement WaveModifier to Apply Sinusoidal Wave Deformation on Mesh
ArtifactForms Dec 5, 2024
2f44f30
Refactoring. Removed redundant java doc.
ArtifactForms Dec 5, 2024
09b1351
Refactoring. Using the extrude modifier instead of the util class.
ArtifactForms Dec 5, 2024
659115a
Added wave and ripple modifier to the modifiers list.
ArtifactForms Dec 5, 2024
68d6672
Refactor SpherifyModifier for improved functionality and validation
ArtifactForms Dec 5, 2024
c11e9ef
Add InflateModifier to expand or contract mesh along vertex normals
ArtifactForms Dec 5, 2024
f8e9d80
Improve lerpLocal methods with edge case handling and efficiency
ArtifactForms Dec 6, 2024
13283c2
Refactor RotateXModifier: Add thread-safe parallel processing and
ArtifactForms Dec 6, 2024
e74bee9
Refactor RotateYModifier: Add thread-safe parallel processing and
ArtifactForms Dec 6, 2024
bdfbf34
Fixed wrong java doc informations.
ArtifactForms Dec 6, 2024
1793cd5
Refactor RotateZModifier: Add thread-safe parallel processing and
ArtifactForms Dec 6, 2024
05378f5
Small format changes for better reading.
ArtifactForms Dec 6, 2024
8782491
Fixed spelling.
ArtifactForms Dec 6, 2024
164b1c4
Optimize mesh transformations with parallelStream for RotateXModifier,
ArtifactForms Dec 6, 2024
438f1e6
Enhance ScaleModifier with parallel processing and input validation
ArtifactForms Dec 6, 2024
3e76c11
Enhance SpherifyModifier: Prevent operations on empty vertex lists
ArtifactForms Dec 6, 2024
a6e6784
Enhanced BendModifier with null check, empty vertices check, and
ArtifactForms Dec 6, 2024
8e3a17b
Enhance BendModifier with default constructor, JavaDocs, and validation
ArtifactForms Dec 6, 2024
33a8721
Added exception message.
ArtifactForms Dec 6, 2024
dcaba40
Refactor and enhance CenterAtModifier
ArtifactForms Dec 6, 2024
9be1f46
Refactor TranslateModifier: Modernize implementation with Vector3f and
ArtifactForms Dec 6, 2024
7f5a6eb
Update IMeshModifier interface with detailed Javadocs and clarify return
ArtifactForms Dec 6, 2024
5081ab1
Refactor FitToAABBModifier for Improved Clarity and Robustness
ArtifactForms Dec 6, 2024
caac270
Refactor FlipFacesModifier to improve validation and logic robustness
ArtifactForms Dec 6, 2024
160a71e
Encasulated epsilon constant.
ArtifactForms Dec 6, 2024
9aaf66f
Fix null pointer exception in FlipFacesModifier.modify when accessing
ArtifactForms Dec 6, 2024
95b8847
Optimize Face Modification for Parallel Processing
ArtifactForms Dec 6, 2024
efeec43
Minor format changes for consistency.
ArtifactForms Dec 6, 2024
81553a1
Fix: getDistributionPoint() was not static.
ArtifactForms Dec 7, 2024
2756188
Minor format changes only.
ArtifactForms Dec 7, 2024
a42ec42
docs: clarify behavior of FlipFacesModifier
ArtifactForms Dec 7, 2024
3d1b35d
Refactor PushPullModifier for clarity, usability, and performance
ArtifactForms Dec 8, 2024
076df0e
Refactor SnapToGroundModifier for Improved Clarity and Efficiency
ArtifactForms Dec 8, 2024
98f9657
Added missing java-doc.
ArtifactForms Dec 8, 2024
8ff51d2
Refactor InsetModifier for clarity, modularity, and enhanced error
ArtifactForms Dec 8, 2024
60b4e9f
Refactor and Extend Mesh3D Functionality
ArtifactForms Dec 9, 2024
bad52cb
Refactor Extrusion Logic: Replace Legacy Utility with Dedicated
ArtifactForms Dec 9, 2024
8296bde
Refactor extrudeFace logic: refined the structure for better
ArtifactForms Dec 9, 2024
124f66f
Enhance FaceModifier interface JavaDoc with guidance on face operations
ArtifactForms Dec 9, 2024
8075857
Refactor CrocodileModifier for Improved Clarity
ArtifactForms Dec 9, 2024
72015c3
Refactoring. Added early exit if factor is zero.
ArtifactForms Dec 9, 2024
da08978
Implemented Spherify modifier unit test.
ArtifactForms Dec 9, 2024
c5b1f72
Refactor UpdateFaceNormalsModifier for improved performance and
ArtifactForms Dec 9, 2024
2ec134b
refactor: Rename WireframeModifier to PseudoWireframeModifier with
ArtifactForms Dec 9, 2024
c1582a6
refactor: Move WidthType enum into BevelEdgesModifier class
ArtifactForms Dec 9, 2024
2821352
fix: Align JUnit 5 dependencies and update Maven Surefire Plugin for
ArtifactForms Dec 9, 2024
18f35e3
Fix: Resolve parameter reassignment issue in `Color.divideLocal`
ArtifactForms Dec 9, 2024
6291610
Solve conflicts.
ArtifactForms Dec 9, 2024
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
2 changes: 2 additions & 0 deletions documentation/modifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ desired effects.
* **PushPullModifier:** Pushes or pulls vertices towards or away from a specified center point.
* **RandomHolesModifier:**
* **RemoveDoubleVerticesModifier:** Removes duplicate vertices from the mesh.
* **RippleModifier:** Applies a ripple effect based on sinusoidal wave functions.
* **RotateXModifier:** Rotates the mesh around the X-axis.
* **RotateYModifier:** Rotates the mesh around the Y-axis.
* **RotateZModifier:** Rotates the mesh around the Z-axis.
Expand All @@ -109,6 +110,7 @@ desired effects.
* **SpherifyModifier:** Spherifies the mesh.
* **TranslateModifier:** Translates the mesh.
* **UpdateFaceNormalsModifier** Updates the face normals of the mesh.
* **WaveModifier:** Applies a wave-like deformation, simulating the appearance of sinusoidal wave.
* **WireframeModifier:** Converts the mesh to a wireframe representation.

## Subdivision Modifiers
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/math/Color.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ public Color subtractLocal(float r, float g, float b, float a) {
* @return this
*/
public Color divideLocal(float a) {
r /= a;
g /= a;
b /= a;
a /= a;
this.r /= a;
this.g /= a;
this.b /= a;
this.a /= a;
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/math/GeometryUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static double angleBetweenVectors(Vector3f v1, Vector3f v2) {
* values between 0 and 1 will return points in between.
* @return The point along the line segment.
*/
public Vector2f getDistributionPoint(Vector2f start, Vector2f end,
public static Vector2f getDistributionPoint(Vector2f start, Vector2f end,
float lambda) {
float scalar = 1f / (1f + lambda);
return start.add(end.mult(lambda)).mult(scalar);
Expand Down
Loading
Loading