Post Reply 
Fill with color in Geometry App
05-12-2014, 04:11 PM
Post: #3
RE: Fill with color in Geometry App
(05-12-2014 12:13 PM)parisse Wrote:  Because L1 is a list, you must convert it to a sequence in order to flatten all the arguments of polygon. Try
GC:=polygon(op(L1),('display')=(3+filled))
Or use a CAS sequence to store your vertices:
l1:=0,1+i,2*i,-1+i/2;
polygon(l1,('display')=(3+filled))
Note that when using CAS variables, the input is kept exact, e.g. perimeter(l1) will return an exact value.

Thank you. That works. I was using L1 because it was the result of doing operations that combined other lists of points.

By the way (as a suggestion for future revisions of the "on screen" help) "op" is not documented in Help. Also, Help states that "convex hull" takes lists of points as arguments, but it also takes sequences of points. And Help states that "polygon" takes sets of points as arguments, but it seems to me that it takes list or sequences.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Fill with color in Geometry App - Alberto Candel - 05-12-2014 04:11 PM



User(s) browsing this thread: 1 Guest(s)