[MINC-users] Subdividing a coloured surface object

Andrew Wood andrew at biospective.com
Sun Nov 19 15:06:24 EST 2017


Hi Bert,

Can you recommend a workaround? I've been trying vertstat_to_volume +
subdivide_polygons + volume_object_evaluate, but so far haven't had great
success.

Thanks,
Andrew

On Sun, Nov 19, 2017 at 12:28 PM, Robert D. Vincent <bert at phalarope.com>
wrote:

> Hi Andrew,
>
> The existing "subdivide polygons" code in the BIC programming library
> ignores per-vertex or per-item colours.
>
> I'm in the process of fixing that, by extending the colour array using what
> is essentially a nearest-neighbour approach.
>
> However, this will not subdivide the actual per-vertex data, which is
> loaded separately.
>
>     -bert
>
> On Sat, Nov 18, 2017 at 2:11 PM, Andrew Wood <andrew at biospective.com>
> wrote:
>
> > Hi all,
> >
> > I have a .txt surface atlas defined on an object that I'd like to
> > subdivide, and I'm trying to get the same atlas defined on my highres
> > surface. So far I've tried this:
> >
> > # Apply the colors to the object
> > $ Display  surf_lowres.obj  -vertex atlas_lowres.txt   # File->Save File
> > ./surf_lowres_coloured.obj
> >
> > # Subdivide the coloured mesh
> > $ subdivide_polygons surf_lowres_coloured.obj  surf_hires_coloured.obj
> >
> > $ Display  surf_hires_coloured.obj
> >
> >
> > I've also tried subdividing the polygons right in Display. In both cases,
> > the vertex colours were lost. Is there a way to apply the same
> subdivision
> > process to atlas values?
> >
> > Thanks,
> > Andrew
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


More information about the MINC-users mailing list