Skip to content

Commit

Permalink
round off the ears a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
balpha committed Apr 3, 2022
1 parent e95f8b2 commit ee5ebfc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions unicornify/unicorn.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,10 @@ func (u *Unicorn) makeEar(data UnicornData, side float64) *Figure {
baseInner := NewBallP(base.Center, base.Radius-2, base.Color)
tipInner := NewBallP(tip.Center.Plus(Vector{-tip.Radius, 0, 0}), tip.Radius-2, tip.Color)

box := NewSteak(
NewBallP(base.Center.Plus((Vector{baseRadius, baseRadius, -baseRadius})), baseRadius, color),
NewBallP(base.Center.Plus((Vector{baseRadius, baseRadius, baseRadius})), baseRadius, color),
NewBallP(base.Center.Plus((Vector{baseRadius, -data.EarLength - baseRadius, -baseRadius})), baseRadius, color),
box := NewBone(
NewBallP(base.Center.Plus((Vector{2 * baseRadius, 2 * baseRadius, 0})), 2*baseRadius, color),
NewBallP(tip.Center.Plus((Vector{2 * baseRadius, -2 * baseRadius, 0})), 2*baseRadius, color),
)
box.FourCorners = true
box.Rounded = false
result := &Figure{}
result.Add(NewIntersection(
NewDifference(
Expand Down

0 comments on commit ee5ebfc

Please sign in to comment.