Hi Keno,

thanks for the message, it would great to take a look at your code, I would 
like to become a little more familiar with the graphics library,

thanks

andrea

On Wednesday, 6 August 2014 23:54:43 UTC+1, Keno Fischer wrote:
>
> I have some code that does this for a triangular mesh, using Cairo.jl 
> directly probably not too hard to adapt that to arbitrary shapes. I don't 
> think it is quite correct though as I'm getting artifacts on element 
> boundaries that I haven't been able to figure out.  
>
>
> On Wed, Aug 6, 2014 at 4:23 PM, Andrea Vigliotti <[email protected] 
> <javascript:>> wrote:
>
>> Hi Simon,
>>
>>
>> thanks for the interest!
>>
>> I'm attaching a picture of what I would like to obtain, 
>>
>>
>> <https://lh5.googleusercontent.com/-WNX2ICZAEdw/U-KN7I_KAMI/AAAAAAAACxI/nmEUPlO3pwI/s1600/sample.png>
>>
>> This was done with the Matlab "patch", here the colours map the nodal 
>> displacement
>>
>> below there is a picture obtained within Julia's PyPlot using the command 
>> "fill"
>>
>>
>> <https://lh6.googleusercontent.com/-gVsqkJhMttg/U-KOVToqhxI/AAAAAAAACxQ/UUY74OaOr2o/s1600/sample_julia.png>
>>
>> as you can see I in this image there is no mapping
>>
>>
>> thanks again!
>>
>>
>> andrea
>>
>>
>>
>>
>> On Wednesday, 6 August 2014 20:38:24 UTC+1, Simon Danisch wrote:
>>>
>>> Can you explain your data from a pure visual stand point?
>>> I don't completely get, what should be part of the visualization, and 
>>> what part belongs to your problem...
>>> This sounds like it could be easily doable with GLPlot, depending on 
>>> your concrete needs.
>>> If its not possible, I might want to implement it;)
>>> Defining 3D/2D edges with color values, adding faces that connect the 
>>> edges and then interpolating the color values per pixel, is one of the most 
>>> basic tasks in OpenGL.
>>>
>>> Am Mittwoch, 6. August 2014 15:22:57 UTC+2 schrieb Andrea Vigliotti:
>>>>
>>>> Hi All,
>>>>
>>>>
>>>> does anyboby know how to plot a 2D polygonal patch with interpolated 
>>>> colouring, based on the nodal values?
>>>>
>>>> I would basically like to reproduce the matlab "patch" command, and I 
>>>> need it to post-process some simulation results from on a finite element 
>>>> model, what I would like to obtain is some contour filled plot on the 
>>>> deformed model, which has an arbitrary shape
>>>>
>>>> PyPlot includes the fill() command that draws filled polygonal with 
>>>> flat colour, but I couldn't find a version that plots polygons with 
>>>> interpolated colours, 
>>>>
>>>> do you guys have any suggestion about this?
>>>>
>>>> thanks,
>>>>
>>>> andrea
>>>>
>>>
>

Reply via email to