-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement spline and fix timeout to jaguar
- Loading branch information
1 parent
38ba237
commit 4aeddc5
Showing
15 changed files
with
229 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
backend/src/main/java/com/nestapp/files/dxf/reader/Insert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.nestapp.files.dxf.reader; | ||
|
||
public class Insert extends Entity implements AutoPop { | ||
private String blockHandle, blockName; | ||
private double ix, iy, xScale = 1.0, yScale = 1.0, zScale = 1.0, rotation; | ||
|
||
Insert(String type) { | ||
super(type); | ||
} | ||
|
||
@Override | ||
public void addParam(int gCode, String value) { | ||
switch (gCode) { | ||
case 2: // Name of Block to insert | ||
blockName = value; | ||
break; | ||
case 5: // Handle of Block to insert | ||
blockHandle = value; | ||
break; | ||
case 10: // Insertion X | ||
ix = Double.parseDouble(value); | ||
break; | ||
case 20: // Insertion Y | ||
iy = Double.parseDouble(value); | ||
break; | ||
case 41: // X scaling | ||
xScale = Double.parseDouble(value); | ||
break; | ||
case 42: // Y scaling | ||
yScale = Double.parseDouble(value); | ||
break; | ||
case 43: // Z Scaling (affects x coord and rotation) | ||
zScale = Double.parseDouble(value); | ||
break; | ||
case 50: // Rotation angle (degrees) | ||
rotation = Double.parseDouble(value); | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.