Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.5K Views
|
6 Replies
|
2 Total Likes
View groups...
Share
Share this post:

FilledCurve and lopsided mandalas

Posted 1 year ago
POSTED BY: Mark Greenberg
6 Replies
Posted 1 year ago
POSTED BY: Eric Rimbey

Ah, I see. Thank you, Eric. The way I was doing it, FilledCurve's argument was a list of B-spline curves. Your solution is a single closed B-spline curve. I'm not sure I would have come up with that on my own. That's the solution I need. : )

POSTED BY: Mark Greenberg

I didn't have the time to work this out, but maybe try omitting the {0,0} from the second (to the last) BSpline? This shows what I mean for the first and second spline:

Graphics[{EdgeForm[Black], FaceForm[Yellow], 
  FilledCurve[{BSplineCurve[{{0, 0}, {Cos[\[Pi]/7] - Sin[\[Pi]/7], 
       Cos[\[Pi]/7] + Sin[\[Pi]/7]}, {3 Cos[\[Pi]/7] + 
        7 Sin[\[Pi]/7], -7 Cos[\[Pi]/7] + 
        3 Sin[\[Pi]/7]}, {3 Cos[\[Pi]/7] - Sin[\[Pi]/7], 
       Cos[\[Pi]/7] + 3 Sin[\[Pi]/7]}, {0, 0}}], 
    BSplineCurve[{{-Cos[(3 \[Pi])/14] + Sin[(3 \[Pi])/14], 
       Cos[(3 \[Pi])/14] + Sin[(3 \[Pi])/14]}, {7 Cos[(3 \[Pi])/14] + 
        3 Sin[(3 \[Pi])/14], 
       3 Cos[(3 \[Pi])/14] - 
        7 Sin[(3 \[Pi])/14]}, {-Cos[(3 \[Pi])/14] + 
        3 Sin[(3 \[Pi])/14], 
       3 Cos[(3 \[Pi])/14] + Sin[(3 \[Pi])/14]}, {0, 0}}]}]}, 
 ImageSize -> Full]
POSTED BY: Arnoud Buzing
POSTED BY: Mark Greenberg

Interesting approach, Gianluca. Thanks. I had not thought of superimposing two curves for the color & outline. I was hoping to preserve the odd-even filling scheme if possible. Your solution results in a fill of the entire shape.

POSTED BY: Mark Greenberg

Here is a variation:

curve = BSplineCurve[{{0, 0}, {1, 1}, {3, -7}, {3, 1}, {0, 0}}];
Graphics[{{Yellow,
   Table[Rotate[FilledCurve@curve, i  \[Pi]/15, {0, 0}], {i, 30}]}, 
  Table[Rotate[curve, i  \[Pi]/15, {0, 0}], {i, 30}]}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard