yeah, sorry i was getting sloppy.
i've moved the code around, so now the error is similar, but the following:
meshlab: ../../../../vcglib/vcg/complex/trimesh/allocate.h:513: static void
vcg::tri::Allocator<AllocateMeshType>::CompactFaceVector(AllocateMeshType&)
[with AllocateMeshType = CMeshO]: Assertion `(int)pos==m.fn' failed.
the only places I'm touching the mesh in my code are lines like the
following:
const typename MESHTYPE::FaceType& fp = m.face[plane];
typename MESHTYPE::VertexType::NormalType r = fp.cN();
r.Normalize();
typename MESHTYPE::VertexType v = m.vert[fp.V(0)-&(*m.vert.begin())];
D = -r[0]*v.P()[0] - r[1]*v.P()[1] -r[2]*v.P()[2];//calculate d for the
plane
do i need to be using const accessors or something?
imran
On Sun, Aug 3, 2008 at 12:39 AM, Paolo Cignoni <pao...@is...>wrote:
> Hi imran,
>
> from the MeshLab wiki
>
> http://meshlab.sourceforge.net/wiki/index.php/Writing_Code
>
> ...
> when you report bugs please adhere to the suggestion in
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html<http://www.chiark.greenend.org.uk/%7Esgtatham/bugs.html>
> (How to Report Bugs Effectively)
> ...
>
> so please elaborate a bit....
> p.
>
>
> skunkwerk wrote:
>
> i'm getting this error:
> meshlab: ../../../vcglib/vcg/complex/trimesh/update/flag.h:339: static void
> vcg::tri::UpdateFlags<UpdateMeshType>::FaceBorderFromNone(UpdateMeshType&)
> [with UpdateMeshType = CMeshO]: Assertion `p==e.end()' failed.
>
> from a call to GLA()->mm()->updateDataMask(req);
> the thing is, i haven't changed the mesh at all - I've just accessed its
> faces and vertices. so i'm not sure why this is happening..
> any ideas?
>
> thanks,
> imran
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> ------------------------------
>
> _______________________________________________
> Meshlab-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/meshlab-devel
>
>
>
> --
> Paolo Cignoni -- Senior Researcher
> Visual Computing Laboratory - ISTI - CNR http://vcg.isti.cnr.it/~cignoni <http://vcg.isti.cnr.it/%7Ecignoni>
>
> ISTI - CNR
> Via Moruzzi 1,
> 56124 Pisa
> ITALY
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Meshlab-devel mailing list
> Mes...@li...
> https://lists.sourceforge.net/lists/listinfo/meshlab-devel
>
>
|