You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
#ifndef __gluknotvector_h_
|
|
#define __gluknotvector_h_
|
|
/**************************************************************************
|
|
* *
|
|
* Copyright (C) 1992, Silicon Graphics, Inc. *
|
|
* *
|
|
* These coded instructions, statements, and computer programs contain *
|
|
* unpublished proprietary information of Silicon Graphics, Inc., and *
|
|
* are protected by Federal copyright law. They may not be disclosed *
|
|
* to third parties or copied or duplicated in any form, in whole or *
|
|
* in part, without the prior written consent of Silicon Graphics, Inc. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
/*
|
|
* knotvector.h - $Revision: 1.1 $
|
|
*/
|
|
|
|
#include "types.h"
|
|
|
|
#ifdef NT
|
|
class Knotvector { /* a knot vector */
|
|
public:
|
|
#else
|
|
struct Knotvector { /* a knot vector */
|
|
#endif
|
|
Knotvector( void );
|
|
~Knotvector( void );
|
|
void init( long, long, long, INREAL * );
|
|
int validate( void );
|
|
void show( char * );
|
|
|
|
long order; /* order of spline */
|
|
long knotcount; /* number of knots */
|
|
long stride; /* bytes between points */
|
|
Knot * knotlist; /* global knot vector */
|
|
};
|
|
|
|
/* tolerance to test knot coincidence */
|
|
#define TOLERANCE 10.0e-5
|
|
|
|
inline int
|
|
identical( Knot x, Knot y )
|
|
{
|
|
return ((x-y) < TOLERANCE) ? 1 : 0;
|
|
}
|
|
#endif /* __gluknotvector_h_ */
|