Skip to content

Commit

Permalink
ready update to v1.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Lampese committed Jul 24, 2023
1 parent 9989d3b commit 1981d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pureeval/voxel-geometry",
"version": "1.2.8",
"version": "1.2.9",
"type": "module",
"description": "voxel-geometry",
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function torus(radius: number, ringRadius: number): Space {
}

function line(p1: Vec3, p2: Vec3, resolution: number): Space {
if (p1.equals(p2)) return [];
const [dx, dy, dz] = [p2.x - p1.x, p2.y - p1.y, p2.z - p1.z];
const steps = Math.max(Math.abs(dx), Math.abs(dy), Math.abs(dz)) * resolution;
const stepX = dx / steps;
Expand Down

0 comments on commit 1981d28

Please sign in to comment.