Skip to content

Commit

Permalink
fix distance scaling in triangleSdf2d
Browse files Browse the repository at this point in the history
close #1260
  • Loading branch information
t3kt committed Sep 17, 2024
1 parent 49f8ce9 commit f66510b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified src/operators/sdf2d/triangleSdf2d.tox
Binary file not shown.
2 changes: 1 addition & 1 deletion src/operators/sdf2d/triangleSdf2d.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
!rop
meta: !meta
opType: raytk.operators.sdf2d.triangleSdf2d
opVersion: '14'
opVersion: '15'
opStatus: default
opDef: !def
enable: true
Expand Down
2 changes: 1 addition & 1 deletion src/operators/sdf2d/triangleSdf2d_shapes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name label code params
equilateral Equilateral Triangle d = sdEquilateralTriangle(p / r) Radius Direction
equilateral Equilateral Triangle d = sdEquilateralTriangle(p / r) * r Radius Direction
isosceles Isosceles Triangle d = sdTriangleIsosceles(p, sz) Height Width Direction
invertisosceles Inverted Isosceles Triangle d = sdTriangleIsosceles(vec2(p.x, sz.y-p.y), sz) Height Width Direction
arbitrary Abritrary Triangle d = sdTriangle(p, THIS_Point1, THIS_Point2, THIS_Point3) Point1[xy] Point2[xy] Point3[xy]
Binary file modified tests/testCases/operators/sdf2d/triangleSdf2d_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f66510b

Please sign in to comment.