Skip to content

Commit

Permalink
#21 Changing the interface to use Transform as the slice plane.
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed May 19, 2016
1 parent c66a300 commit 827c918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/eu/mihosoft/vrl/v3d/ISlice.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public interface ISlice {
* @param normalInsetDistance sets the inset to the interior of the shape.
* @return a set of points corosponding to a slice given these parameters.
*/
List<Vector3d> slice(CSG incoming, Plane slicePlane, double normalInsetDistance) ;
List<Vector3d> slice(CSG incoming, Transform slicePlane, double normalInsetDistance) ;
}
4 changes: 2 additions & 2 deletions src/main/java/eu/mihosoft/vrl/v3d/Slice.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ public class Slice {
private static ISlice sliceEngine = new ISlice() {

@Override
public List<Vector3d> slice(CSG incoming, Plane slicePlane, double normalInsetDistance) {
public List<Vector3d> slice(CSG incoming, Transform slicePlane, double normalInsetDistance) {
List<Vector3d> slicedPoints = new ArrayList<>();
System.out.println("This is a dummy slice engine and is not implemented yet");
return slicedPoints;
}
};
public static List<Vector3d> slice(CSG incoming, Plane slicePlane, double normalInsetDistance) {
public static List<Vector3d> slice(CSG incoming, Transform slicePlane, double normalInsetDistance) {
return getSliceEngine().slice(incoming, slicePlane, normalInsetDistance);
}

Expand Down

0 comments on commit 827c918

Please sign in to comment.