Skip to content

Commit

Permalink
Remove tabs from C++ source
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 1, 2013
1 parent bb3c501 commit 6755db4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/cpp/wrap_tetgen.cpp
Expand Up @@ -16,25 +16,25 @@ using namespace std;



namespace
namespace
{
struct tMeshInfo : public tetgenio, public boost::noncopyable
{
private:
typedef tetgenio super;

public:
tForeignArray<REAL> Points; // in/out
tForeignArray<REAL> PointAttributes; // in/out
tForeignArray<REAL> PointMetricTensors; // in/out
tForeignArray<int> PointMarkers; // in/out
tForeignArray<REAL> Points; // in/out
tForeignArray<REAL> PointAttributes; // in/out
tForeignArray<REAL> PointMetricTensors; // in/out
tForeignArray<int> PointMarkers; // in/out

tForeignArray<int> Elements; // in/out
tForeignArray<REAL> ElementAttributes; // in/out
tForeignArray<REAL> ElementVolumes; // out
tForeignArray<int> Neighbors; // out
tForeignArray<int> Elements; // in/out
tForeignArray<REAL> ElementAttributes; // in/out
tForeignArray<REAL> ElementVolumes; // out
tForeignArray<int> Neighbors; // out

tForeignArray<tetgenio::facet> Facets;
tForeignArray<tetgenio::facet> Facets;
tForeignArray<int> FacetMarkers;

tForeignArray<REAL> Holes;
Expand All @@ -60,7 +60,7 @@ namespace
PointMarkers(pointmarkerlist, numberofpoints, 1, &Points),

Elements(tetrahedronlist, numberoftetrahedra, 0),
ElementAttributes(tetrahedronattributelist,
ElementAttributes(tetrahedronattributelist,
numberoftetrahedra, 0, &Elements),
ElementVolumes(tetrahedronvolumelist, numberoftetrahedra, 1, &Elements),
Neighbors(neighborlist, numberoftetrahedra, 4, &Elements),
Expand All @@ -85,8 +85,8 @@ namespace
EdgeMarkers(edgemarkerlist, numberofedges, 1, &Edges)
{
Elements.fixUnit(numberofcorners);
}
}

unsigned numberOfPointAttributes() const
{
return numberofpointattributes;
Expand Down Expand Up @@ -347,13 +347,13 @@ BOOST_PYTHON_MODULE(_tetgen)
.def_readonly("edges", &cl::Edges)
.def_readonly("edge_markers", &cl::EdgeMarkers)

.add_property("number_of_point_attributes",
.add_property("number_of_point_attributes",
&cl::numberOfPointAttributes,
&cl::setNumberOfPointAttributes)
.add_property("number_of_element_vertices",
.add_property("number_of_element_vertices",
&cl::numberOfElementVertices,
&cl::setNumberOfElementVertices)
.add_property("number_of_element_attributes",
.add_property("number_of_element_attributes",
&cl::numberOfElementAttributes,
&cl::setNumberOfElementAttributes)

Expand Down Expand Up @@ -387,17 +387,17 @@ BOOST_PYTHON_MODULE(_tetgen)
{
typedef tetgenio::facet cl;
class_<cl, boost::noncopyable>("Facet", no_init)
.add_property("polygons",
.add_property("polygons",
make_function(facet_get_polygons, manage_new_internal_reference<>()))
.add_property("holes",
.add_property("holes",
make_function(facet_get_holes, manage_new_internal_reference<>()))
;
}

{
typedef tetgenio::polygon cl;
class_<cl, boost::noncopyable>("Polygon", no_init)
.add_property("vertices",
.add_property("vertices",
make_function(polygon_get_vertices, manage_new_internal_reference<>()))
;
}
Expand All @@ -409,7 +409,7 @@ BOOST_PYTHON_MODULE(_tetgen)
.def_readwrite("facet_marker_2", &cl::fmark2)
.def("get_transmat_entry", pbcgroup_get_transmat_entry)
.def("set_transmat_entry", pbcgroup_set_transmat_entry)
.add_property("point_pairs",
.add_property("point_pairs",
make_function(pbcgroup_get_pointpairs, manage_new_internal_reference<>()))
;
}
Expand Down

0 comments on commit 6755db4

Please sign in to comment.