1
0
Fork 0

Maintenance: whitespace

Eliminate formfeeds.
This commit is contained in:
scttgs0 2023-05-13 13:26:37 -05:00
parent aa0c7e1c96
commit 40ecb4048c
12 changed files with 7 additions and 45 deletions

View file

@ -74,7 +74,6 @@ inline void array<T>::resize(int l)
delete[] old;
}
template<class T>
class array2 {

View file

@ -90,7 +90,6 @@ inline boolean inCircle(const Vec2& a, const Vec2& b, const Vec2& c,
(d[0]*d[0] + d[1]*d[1]) * triArea(a, b, c) > EPS;
}
class Plane {
public:
@ -120,7 +119,6 @@ inline void Plane::init(const Vec3& p, const Vec3& q, const Vec3& r)
c = p[Z] - a*p[X] - b*p[Y];
}
class Line {

View file

@ -18,8 +18,6 @@ void TrackedTriangle::update(Subdivision& s)
gs.scanTriangle(*this);
}
GreedySubdivision::GreedySubdivision(Map *map)
{
@ -86,8 +84,6 @@ Triangle *GreedySubdivision::allocFace(Edge *e)
}
void GreedySubdivision::compute_plane(Plane& plane,
Triangle& T,
Map& map)

View file

@ -45,7 +45,6 @@ void Heap::downheap(int i)
}
}
void Heap::insert(Labelled *t,real v)
{

View file

@ -31,8 +31,6 @@ public:
extern Map *readPGM(std::istream&);
template<class T>
class DirectMap : public Map
{
@ -64,7 +62,6 @@ typedef DirectMap<unsigned short> ShortMap;
typedef DirectMap<unsigned int> WordMap;
typedef DirectMap<real> RealMap;
template<class T>
DirectMap<T>::DirectMap(int w, int h)

View file

@ -84,7 +84,6 @@ void Subdivision::initMesh(const Vec2& A,const Vec2& B,
}
void Subdivision::deleteEdge(Edge *e)
{
@ -124,7 +123,6 @@ void Subdivision::swap(Edge *e)
f2->reshape(e->Sym());
}
//
// Subdivision iterators
@ -168,8 +166,6 @@ void Subdivision::overFaces(face_callback fn, void *closure)
}
//
// Random predicates
//
@ -220,9 +216,6 @@ boolean Subdivision::shouldSwap(const Vec2& x, Edge *e)
}
Edge *Subdivision::locate(const Vec2& x, Edge *start)
{
Edge *e = start;
@ -412,7 +405,6 @@ Edge *Subdivision::insert(Vec2& x, Triangle *tri)
return start_spoke;
}
Triangle *Subdivision::allocFace(Edge *e)
{
@ -431,11 +423,6 @@ Triangle& Subdivision::makeFace(Edge *e)
}
void Triangle::dontAnchor(Edge *e)
{
if( anchor == e )

View file

@ -56,7 +56,6 @@ public:
}
};
inline void Vec2::copy(const Vec2& v)
{

View file

@ -55,8 +55,6 @@ public:
};
inline void Vec3::copy(const Vec3& v)
{
elt[0]=v.elt[0]; elt[1]=v.elt[1]; elt[2]=v.elt[2];

View file

@ -24,7 +24,7 @@
This file was modified slightly by Ian Lance Taylor, June 1992, for
Taylor UUCP. */
/* If GETOPT_COMPAT is defined, `+' as well as `--' can introduce a
long-named option. Because this is not POSIX.2 compliant, it is
@ -124,10 +124,10 @@ static enum
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
}
ordering;
#define my_index strchr
#define my_bcopy(src, dst, n) memcpy ((dst), (src), (n))
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
@ -170,7 +170,7 @@ static void exchange(argv)
first_nonopt += (optind - last_nonopt);
last_nonopt = optind;
}
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
@ -544,7 +544,7 @@ int getopt(argc, argv, optstring)
return _getopt_internal(argc, argv, optstring, (const struct option *) 0,
(int *) 0, 0);
}
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing
@ -633,7 +633,7 @@ int main(argc, argv)
You should have received a copy of the GNU Library General Public License
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H
#if defined (emacs) || defined (CONFIG_BROKETS)
@ -705,7 +705,7 @@ int getopt_long_only(argc, argv, options, long_options, opt_index)
}
#endif /* _LIBC or not __GNU_LIBRARY__. */
#ifdef TEST
#include <stdio.h>

View file

@ -21,7 +21,6 @@
*
*************************************************************************/
inline void glV(GLdouble x, GLdouble y) { glVertex2d(x,y); }
inline void glV(GLfloat x, GLfloat y) { glVertex2f(x,y); }
@ -59,7 +58,6 @@ inline void glV4(const GLfloat *v) { glVertex4fv(v); }
inline void glV4(const GLint *v) { glVertex4iv(v); }
inline void glV4(const GLshort *v) { glVertex4sv(v); }
inline void glN(GLdouble x, GLdouble y, GLdouble z) { glNormal3d(x,y,z); }
inline void glN(GLfloat x, GLfloat y, GLfloat z) { glNormal3f(x,y,z); }
@ -71,7 +69,6 @@ inline void glN3(const GLfloat *v) { glNormal3fv(v); }
inline void glN3(const GLint *v) { glNormal3iv(v); }
inline void glN3(const GLshort *v) { glNormal3sv(v); }
inline void glC(GLdouble x, GLdouble y, GLdouble z) { glColor3d(x,y,z); }
inline void glC(GLfloat x, GLfloat y, GLfloat z) { glColor3f(x,y,z); }
@ -96,7 +93,6 @@ inline void glC4(const GLfloat *v) { glColor4fv(v); }
inline void glC4(const GLint *v) { glColor4iv(v); }
inline void glC4(const GLshort *v) { glColor4sv(v); }
inline void glLoadMatrix(const GLdouble *m) { glLoadMatrixd(m); }
inline void glLoadMatrix(const GLfloat *m) { glLoadMatrixf(m); }
@ -106,7 +102,6 @@ inline void glGetMatrix(GLdouble *m,GLenum src=GL_PROJECTION_MATRIX)
inline void glGetMatrix(GLfloat *m,GLenum src=GL_PROJECTION_MATRIX)
{ glGetFloatv(src,m); }
/*************************************************************************
*

View file

@ -184,9 +184,6 @@ void mesh_mouse(int button, int state, int x, int y)
}
////////////////////////////////////////////////////////////////////////
//
// Surface functions
@ -426,7 +423,6 @@ void gui_interact()
glutMainLoop();
}
////////////////////////////////////////////////////////////////////////
//

View file

@ -58,8 +58,6 @@ void generate_output(char *filename, FileFormat format)
}
static ostream *output_stream;