00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #ifndef lint
00055 static const char RCSid[] = "@(#)$Header: /cvsroot/brlcad/brlcad/src/libbn/marker.c,v 14.10 2006/09/03 15:15:16 lbutler Exp $ (BRL)";
00056 #endif
00057
00058 #include "common.h"
00059
00060
00061
00062 #include <stdio.h>
00063 #ifdef HAVE_STRING_H
00064 #include <string.h>
00065 #endif
00066
00067 #include "machine.h"
00068 #include "vmath.h"
00069 #include "plot3.h"
00070
00071 void
00072 tp_2marker(FILE *fp, register int c, double x, double y, double scale)
00073 {
00074 char mark_str[4];
00075
00076 mark_str[0] = (char)c;
00077 mark_str[1] = '\0';
00078
00079
00080 tp_2symbol( fp, mark_str,
00081 (x - scale*0.5), (y - scale*0.5),
00082 scale, 0.0 );
00083 }
00084
00085 void
00086 PL_FORTRAN(f2mark, F2MARK)( fp, c, x, y, scale )
00087 FILE **fp;
00088 int *c;
00089 float *x;
00090 float *y;
00091 float *scale;
00092 {
00093 tp_2marker( *fp, *c, *x, *y, *scale );
00094 }
00095
00096
00097
00098
00099 void
00100 tp_3marker(FILE *fp, register int c, double x, double y, double z, double scale)
00101 {
00102 char mark_str[4];
00103 mat_t mat;
00104 vect_t p;
00105
00106 mark_str[0] = (char)c;
00107 mark_str[1] = '\0';
00108 MAT_IDN( mat );
00109 VSET( p, x - scale*0.5, y - scale*0.5, z );
00110 tp_3symbol( fp, mark_str, p, mat, scale );
00111 }
00112
00113 void
00114 PL_FORTRAN(f3mark, F3MARK)( fp, c, x, y, z, scale )
00115 FILE **fp;
00116 int *c;
00117 float *x;
00118 float *y;
00119 float *z;
00120 float *scale;
00121 {
00122 tp_3marker( *fp, *c, *x, *y, *z, *scale );
00123 }
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134