Hi Luca,

Thanks for your help. It works!

I took a (lazy) shortcut and used the output of vmtkbranchpatching as input
for my flattening script. Find the script attached.

Best,

Arjan

On Tue, Jul 10, 2012 at 12:40 AM, Luca Antiga <luca.ant...@orobix.com>wrote:

> Hi Arjan,
>  good question.
> There isn't out of the box, but all the information is there in the
> vmtkbranchmapping output already,
> namely StretchedMapping -> y coordinates and AngularMetric -> x
> coordinates.
> It should be pretty straightforward to code up a python code that sets the
> point coordinates based
> on those arrays.
>
> There is one bit missing, that is the longitudinal cut at pi / -pi. If you
> want it clean (i.e. straight), then
> there's some work to do (you can take some inspiration at how the patching
> code does it).
>
> Probably the clean way would be to decompose the patching class in two,
> one for cutting the
> vessel open along pi / -pi, the other for patching.
>
> Hope this helps, let me know if you need more hints.
>
> Best,
>
>
> Luca
>
>
> On Jul 2, 2012, at 4:01 PM, Arjan Geers wrote:
>
> > Hi all,
> >
> > I went through the "Mapping and Patching" tutorial and was wondering if
> there is an out-of-the-box way to make a flattened image without patching
> (like Figure 8, right panel).
> >
> > As a workaround, I tried using vmtkbranchpatching with very small
> patches, but holes appear in the patched surface when the number of sectors
> exceeds a certain value (exact number depends on element size).
> >
> > Thanks for your help,
> >
> > Arjan
> >
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> > vmtk-users mailing list
> > vmtk-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/vmtk-users
>
>

Attachment: flatten_patched_branch.py
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to