ff3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ff3d-users] A bug with ffout(4)<<"ref de surfmesh = "<<surfmesh.cel


From: Cécile DOBRZYNSKI
Subject: Re: [ff3d-users] A bug with ffout(4)<<"ref de surfmesh = "<<surfmesh.cell(0).reference()<<"\n"; ?
Date: Fri, 30 Jan 2004 13:57:02 +0100

Hello,

I think it's a problem in the part that I wrote.
So I will quickly study the problem.

Cécile

Le 30 janv. 04, à 00:00, Robert Li a écrit :

Dear Stephane Del Pino,

I met a memory exception with my special test file,
which tried to
extract a plane from  one box and two planes.
I think you access a reference whose element size is
0.

reference
void SurfaceMeshGenerator::Internals::
__putRefByFront(const size_t numobject,
                const ObjectToTreat& O1,
                const ObjectToTreat& O2,
                const SurfaceMeshOfTriangles& surfmesh,
                const Connectivity<Triangle>& connect,
                const std::set<const Cell*>& toTreatHexahedra) {
  //pour etre sur qu'on traite bien tous les tr qu'il
faut
  std::map<const Triangle*,size_t> listTreat;
....
  ffout(4)<<"ref de surfmesh =
"<<surfmesh.cell(0).reference()<<"\n"; <<<<<<<<Bug



test file
Pov
box { <-2,  -2,  -2>, < 2, 2, 2  > pigment { color rgb
<1,0,0> } }
plane  { <0,0,-1>, -2 pigment { color rgb <1,1,0> }}
plane  { <0,0,1>, 2 pigment { color rgb <1,0,1> }}

input file
vector n = (20,20,11);
vector a = (-3,-3,-3);
vector b = (3,3,7);


mesh M = structured(n,a,b);

scene S = pov("bug.pov");
domain O = domain(S,inside(<1,0,0>) and
inside(<1,1,0>) and inside(<1,0,1>));

mesh s = surface(O,M);

save(medit,"bug", s,dos);
exec("medit bug");


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


_______________________________________________
ff3d-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/ff3d-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]