Skip to content

Commit

Permalink
Add some missing op configs
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Mar 24, 2024
1 parent c4feff3 commit 21c165b
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions Packages/Polyhydra/com.ixxy.polyhydra/Core/Runtime/OpConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,29 @@ public static (int v, int e, int f) CalcVef(PolyMesh poly, PolyMesh.Operation op
// matrix = new [,]{{0,3,1},{0,8,0},{1,4,0}}
}
},

{
PolyMesh.Operation.Zellige,
new OpConfig
{
usesAmount = false
}
},
{
PolyMesh.Operation.Girih,
new OpConfig
{
amountDefault = 0.49f,
amountMin = -3, amountMax = 3, amountSafeMin = -1, amountSafeMax = 1,
}
},
{
PolyMesh.Operation.SubdivideEdges,
new OpConfig
{
amountDefault = 1,
amountMin = 1, amountMax = 8, amountSafeMin = 1, amountSafeMax = 32,
}
},
{
PolyMesh.Operation.SplitFaces,
new OpConfig
Expand Down Expand Up @@ -941,9 +963,16 @@ public static (int v, int e, int f) CalcVef(PolyMesh poly, PolyMesh.Operation op
PolyMesh.Operation.FaceInset,
new OpConfig
{
usesFilter = true,
amountDefault = 0.1f,
amountMin = -3, amountMax = 3, amountSafeMin = -1f, amountSafeMax = 1f
amountDefault = 0.01f,
amountMin = -2, amountMax = 2, amountSafeMin = 0, amountSafeMax = 1
}
},
{
PolyMesh.Operation.MergeCoplanar,
new OpConfig
{
amountDefault = 0.01f,
amountMin = 0.01f, amountMax = 30f, amountSafeMin = 0.00001f, amountSafeMax = 180f
}
},
{
Expand Down

0 comments on commit 21c165b

Please sign in to comment.