-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdots.h
29 lines (23 loc) · 1.08 KB
/
dots.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* name: dots.h */
/* purpose: routines to generate points on a sphere */
/*****************************************************************/
/* NOTICE: This is free software and the source code is freely */
/* available. You are free to redistribute or modify under the */
/* conditions that (1) this notice is not removed or modified */
/* in any way and (2) any modified versions of the program are */
/* also available for free. */
/* ** Absolutely no Warranty ** */
/* Copyright (C) 1999 J. Michael Word */
/*****************************************************************/
#ifndef DOTS_H
#define DOTS_H 1
#include "geom3d.h"
typedef struct {
int n; /* number of three-dimensional points */
point3d *p; /* array of points */
} pointSet;
void dotSphere(pointSet *set, float radius, float density);
void freeDotSphere(pointSet *set);
int estNumDots(float radius, float density);
int makeDots(float radius, point3d points[], int maxpnts);
#endif