Skip to content

Commit bfb28c9

Browse files
committed
Fixed max line length.
1 parent 2680a64 commit bfb28c9

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

src/main/java/mesh/creator/platonic/DodecahedronCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ private void createVerticesAt(int i) {
4444
float sinA2 = Mathf.sin(a) * 2;
4545
float cosA2 = Mathf.cos(a) * 2;
4646
Vector3f v0 = new Vector3f(cosA2, sinA2, GOLDEN_RATIO + 1);
47-
Vector3f v1 = new Vector3f(cosA2 * GOLDEN_RATIO, sinA2 * GOLDEN_RATIO, GOLDEN_RATIO - 1);
47+
Vector3f v1 = new Vector3f(cosA2 * GOLDEN_RATIO, sinA2 * GOLDEN_RATIO,
48+
GOLDEN_RATIO - 1);
4849
addVertices(v0, v1);
4950
}
5051

src/main/java/mesh/creator/platonic/PlatonicSolid.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public enum PlatonicSolid {
2020

2121
private String name;
2222

23-
private PlatonicSolid(int faceCount, int vertexCount, int edgeCount, String name) {
23+
private PlatonicSolid(int faceCount, int vertexCount, int edgeCount,
24+
String name) {
2425
this.faceCount = faceCount;
2526
this.vertexCount = vertexCount;
2627
this.edgeCount = edgeCount;

src/main/java/mesh/creator/special/DualCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ private void createFaces() {
3838
Edge3D edge = outgoingEdge;
3939
Vector<Integer> indices = new Vector<Integer>();
4040
do {
41-
Face3D face = helper.getFaceByEdge(edge.fromIndex, edge.toIndex);
41+
Face3D face = helper.getFaceByEdge(edge.fromIndex,
42+
edge.toIndex);
4243
indices.add(faceVertexMap.get(face));
4344
edge = helper.getPairNext(edge.fromIndex, edge.toIndex);
4445
} while (!outgoingEdge.equals(edge));

src/main/java/mesh/creator/special/GemCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ private void createVerticesAtHalfPavilionHeight() {
126126
private void createMidTableVertices() {
127127
float angleStep = Mathf.TWO_PI / segments;
128128
float offset = -angleStep / 2.0f;
129-
float radius = ((this.pavillionRadius + tableRadius) / 2.0f) / Mathf.cos(offset);
129+
float radius = ((this.pavillionRadius + tableRadius) / 2.0f)
130+
/ Mathf.cos(offset);
130131
CircleCreator creator = new CircleCreator();
131132
creator.setCenterY(-tableHeight / 2.0f);
132133
creator.setVertices(segments);

src/main/java/mesh/creator/unsorted/CubeJointLatticeCubeCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ private void centerAtOrigin() {
149149
}
150150

151151
private void initializeCubes() {
152-
cubes = new Mesh3D[subdivisionsY + 1][subdivisionsX + 1][subdivisionsZ + 1];
152+
cubes = new Mesh3D[subdivisionsY + 1][subdivisionsX + 1][subdivisionsZ
153+
+ 1];
153154
}
154155

155156
private void initializeMesh() {

src/main/java/mesh/creator/unsorted/NubCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ private void addFace(int i, int j) {
9393
}
9494

9595
private int toOneDimensionalIndex(int i, int j) {
96-
return Mathf.toOneDimensionalIndex(i, j % rotationSegments, rotationSegments);
96+
return Mathf.toOneDimensionalIndex(i, j % rotationSegments,
97+
rotationSegments);
9798
}
9899

99100
private void capTop() {

src/main/java/mesh/modifier/BendModifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import mesh.Mesh3D;
66

77
/**
8-
* https://www.reddit.com/r/blender/comments/1x10ba/help_with_understanding_the_simple_deform_bend/
8+
* https://www.reddit.com/r/blender/comments/1x10ba/
9+
* help_with_understanding_the_simple_deform_bend/
910
*/
1011
public class BendModifier implements IMeshModifier {
1112

src/main/java/mesh/modifier/subdivision/DooSabinModifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
* subdivision surface is based on a generalization of bi-quadratic uniform
1919
* B-splines and was developed in 1978 by Daniel Doo and Malcolm Sabin.
2020
*
21-
* @see http://graphics.cs.ucdavis.edu/education/CAGDNotes/Doo-Sabin/Doo-Sabin.html
21+
* @see http://graphics.cs.ucdavis.edu/education/
22+
* CAGDNotes/Doo-Sabin/Doo-Sabin.html
2223
*
2324
* @version 0.1, 4 December 2017
2425
*/

0 commit comments

Comments
 (0)