[Ves] VES polydata object with multiple elements (triangles and lines)
Aashish Chaudhary
aashish.chaudhary at kitware.com
Fri Mar 14 00:40:29 EDT 2014
On Thu, Mar 13, 2014 at 5:55 AM, Sebastien HO <sho at traceparts.com> wrote:
> Hi folks,
>
>
>
> My goal is to create a VES file that contains a geometric representation
> of a part with colors and its silhouette (shaded with edges
> representation). The silhouette would be computed from our system.
>
> The goal is to have a polydata element with points, colored lines (black)
> and colored triangles (depends on face color). I would like to know if VES
> file format enables to store this kind of element. If yes, is there any
> examples around (like a colored cube with black edges)?
>
Yes, it is possible. The format for VES geometry data is inspired from
collada format. Its basically is bunch of arrays with metadata on top of
it to describe necessary information
for opengl to extract pieces out of it. You can find an example on how to
draw a plane here:
http://vtk.org/gitweb?p=VES.git;a=blob;f=src/ves/Testing/TestDrawPlane.cpp;h=fc5db8f7d18c6fc0b256fdd2db117309f582b0ad;hb=HEAD
You should be able to add new primitive (vesPrimitive) using the same
vertices to draw lines as well.
Hope this helps.
- Aashish
>
> Thanks for your help,
>
>
>
> Cordialement / Best regards / Mit freundlichen Grüßen / Saludos / Cordiali
> saluti
>
> *Sébastien HO | R&D Engineer | R&D Department*
>
> *TraceParts S.A.*
> Parc Eco Normandie - 76430 St Romain - France
>
>
>
> sho at traceparts.com
>
> Tel: +33(0)232 735 459
>
> Fax: +33(0)232 795 961
>
> *www.traceparts.com <http://www.traceparts.com/>*
>
>
>
>
>
> *The information contained in this email is intended solely for the
> addressee. Access to his email by anyone else is unauthorized. If you are
> not the intended recipient, any form of disclosure, reproduction,
> distribution or any action taken or refrained form in reliance on it, is
> prohibited and may be unlawful. **Please notify the sender immediately.*
>
>
>
>
>
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140314/e9323a58/attachment-0003.html>
More information about the Ves
mailing list