Hi Simon, 

thanks that would be very helpful! I would like to start digging into the 
graphics library and it would be great to see how code is put together, 
function called etc...

the matlab patch command is called like this:

patch(X,Y,C) -> where X, Y, and C are arrays with the x-coord, the y- coord 
of the nodes and and the value to be mapped to color for each node, 
respectively

but if you have already something in other formats, that will be great

andrea


On Wednesday, 6 August 2014 23:40:27 UTC+1, Simon Danisch wrote:
>
> I see...
> That looks like what I had in mind.
> Well this is not in the API of GLPlot yet, but as its very simple I could 
> just give you a piece of code, that does exactly this.
> Would that help?
> If yes, how do you have the data?
> Best would be an array like this:
> using ImmutableArrays #needed for vectors
> edges = Vector3[Vector3(...), Vector3(...), ...]
> color = Vector3[Vector3(...), Vector3(...), ...]
> face_indexes = [0,1,2,3,   3,4,5,6   , ...] # 0 indexed triangles. So a 
> quad would actually be 0,1,2, 2,3,0
> 1 --- 2
>  |   /  |
> 0 ---3
> If that works out for you, we could just extend the plotting API, to 
> include patches, preferable without the user needing to build the indexes.
>

Reply via email to