Changeset 230 for trunk/src/mesh


Ignore:
Timestamp:
Mar 1, 2006 8:01:25 AM (18 years ago)
Author:
cxsong
Message:

added xmlString

Location:
trunk/src/mesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/node3d.cc

    r197 r230  
    6969
    7070void
     71RpNode3d::xmlString(std::string& str)
     72{
     73        char cstr[512];
     74        sprintf(cstr, "<node id=\"%d\"> %d %d %d</node>\n",m_id,m_x,m_y,m_z);
     75        str.append(cstr);
     76}
     77
     78void
    7179RpNode3d::print()
    7280{
  • trunk/src/mesh/node3d.h

    r211 r230  
    4646        RP_ERROR deserialize(const char* buf);
    4747
     48        void xmlString(std::string& str);
    4849        void print();
    4950
Note: See TracChangeset for help on using the changeset viewer.