Changeset 211 for trunk/src/mesh


Ignore:
Timestamp:
Feb 23, 2006 8:26:09 AM (18 years ago)
Author:
cxsong
Message:

various changes made 2/22

Location:
trunk/src/mesh
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/Makefile

    r202 r211  
    354354endiantest: endiantest.o
    355355        $(CXX) -o $@ $<
    356 test_node: test_node.o
     356test_node3d: test_node3d.o
    357357        $(CXX) -o $@ $< $(LIB_RPMESH)
     358test_node2d: test_node2d.o
     359        $(CXX) -o $@ $< $(LIB_RPMESH)
     360etest: etest.o
     361        $(CXX) -o $@ $< $(LIB_RPMESH)
  • trunk/src/mesh/element.h

    r202 r211  
    44#include <iostream>
    55#include <vector>
    6 #include "node3d.h"
    76#include "util.h"
    87
  • trunk/src/mesh/node2d.h

    r202 r211  
    2424
    2525        // assign value to coordinate[index]
     26        void set(int id, int x, int y) { m_id = id; m_x = x; m_y = y; };
     27        void set(int id, int* val) { m_id = id; m_x = val[0]; m_y = val[1]; };
    2628        void set(int x, int y) { m_x = x; m_y = y; };
    27         void set(int* val) { m_x = val[0]; m_y = val[1]; };
    2829
    2930        // get node coordinates
  • trunk/src/mesh/node3d.h

    r197 r211  
    2424        { };
    2525
     26        void operator=(const int* val)
     27                { m_x = val[0]; m_y = val[1]; m_z = val[2]; };
     28       
    2629        // assign value to coordinate[index]
    27         void set(int x, int y, int z) { m_x = x; m_y = y; m_z =z; };
    28         void set(int* val) { m_x = val[0]; m_y = val[1]; m_z = val[2]; };
     30        void set(int x, int y, int z)
     31                { m_x = x; m_y = y; m_z =z; };
     32        void set(int* val)
     33                { m_x = val[0]; m_y = val[1]; m_z = val[2]; };
    2934
    3035        // get node coordinates
Note: See TracChangeset for help on using the changeset viewer.