Subject: CGAL users discussion list
List archive
- From: marcosscriven <>
- To:
- Subject: [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?
- Date: Thu, 28 Mar 2013 04:51:50 -0700 (PDT)
Unfortunately, NP3.snc() and NP3.pl() are protected scope.
SNC_io_parser.h can only access it for its stream operations because it's
marked as a friend.
Can you see any downside to me patching snc/pl to be public, so that I can
do this:
for(i=0; i<vn; ++i) Vertex_of.push_back(this->sncp()->new_vertex_only());
for(i=0; i<en; ++i) Edge_of.push_back(this->sncp()->new_halfedge_only());
for(i=0; i<fn; ++i)
Halffacet_of.push_back(this->sncp()->new_halffacet_only());
for(i=0; i<cn; ++i) Volume_of.push_back(this->sncp()->new_volume_only());
for(i=0; i<sen; ++i)
SEdge_of.push_back(this->sncp()->new_shalfedge_only());
for(i=0; i<sln; ++i)
SLoop_of.push_back(this->sncp()->new_shalfloop_only());
for(i=0; i<sfn; ++i) SFace_of.push_back(this->sncp()->new_sface_only());
And then this:
NP.pl()->initialize(&NP.snc());
Where instead of populating vn, en, fn... etc from a stream, I populate it
by doing a directory copy from the in memory NP3 I want to copy?
Please also see me query about allocators, as I'm not entirely sure the
above would be necessary, if somehow I could have an allocator that used an
offset pointer.
Marcos
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/What-s-the-fastest-way-to-serialise-Nef-3-poly-tp4657024p4657063.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/25/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- Re: [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, Sebastien Loriot (GeometryFactory), 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- Re: [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, Sebastien Loriot (GeometryFactory), 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/28/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- Re: [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, Daniel Pfenniger, 03/28/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/28/2013
- Re: [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, Sebastien Loriot (GeometryFactory), 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
- [cgal-discuss] Re: What's the fastest way to serialise Nef 3 poly?, marcosscriven, 03/26/2013
Archive powered by MHonArc 2.6.18.