ff3d-users
[Top][All Lists]
Advanced

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

[ff3d-users] A bug with ffout(4)<<"ref de surfmesh = "<<surfmesh.cell(0)


From: Robert Li
Subject: [ff3d-users] A bug with ffout(4)<<"ref de surfmesh = "<<surfmesh.cell(0).reference()<<"\n"; ?
Date: Thu, 29 Jan 2004 15:00:00 -0800 (PST)

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/




reply via email to

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