55 for ( i = 0; i < *
nx; i++ )
57 for ( j = 0; j < *
ny; j++ )
59 a[i][j] = z[i + j * *lx];
63 c_plot3dc( x, y, (
const PLFLT *
const *) a, *nx, *ny, *opt, clevel, *nlevel );
74 PLOT3DC__( x, y, z, nx, ny, opt, clevel, nlevel, lx );
90 if ( !( temp = (
PLFLT **) malloc( (
size_t) *nx *
sizeof (
PLFLT * ) ) ) )
92 plabort(
"PLSURF3D: Out of memory" );
96 for ( i = 0; i < *
nx; i++ )
98 if ( !( temp[i] = (
PLFLT *) malloc( (
size_t) *ny *
sizeof (
PLFLT ) ) ) )
102 for ( ii = 0; ii < i - 1; ii++ )
103 free( (
void *) temp[i] );
104 free( (
void *) temp );
105 plabort(
"PLSURF3D: Out of memory" );
110 for ( i = 0; i < *
nx; i++ )
111 for ( j = 0; j < *
ny; j++ )
112 temp[i][j] = *( z + j * *lx + i );
114 c_plsurf3d( x, y, (
const PLFLT *
const *) temp, *nx, *ny, *opt, clevel, *nlevel );
116 for ( i = 0; i < *
nx; i++ )
117 free( (
void *) temp[i] );
119 free( (
void *) temp );
126 PLINT optlocal, nlevel = 0;
129 optlocal = *opt |
MESH;
130 PLOT3DC__( x, y, z, nx, ny, &optlocal, &clevel, &nlevel, lx );
139 optlocal = *opt |
MESH;
140 PLOT3DC__( x, y, z, nx, ny, &optlocal, clevel, nlevel, lx );
148 PLINT optlocal, nlevel = 0;
151 optlocal = *opt | ( *side != 0 ?
DRAW_SIDES : 0 );
152 PLOT3DC__( x, y, z, nx, ny, &optlocal, &clevel, &nlevel, lx );
void plFree2dGrid(PLFLT **f, PLINT nx, PLINT PL_UNUSED(ny))
void PLFLT PLINT PLINT PLFLT PLFLT PLFLT PLFLT PLINT PLINT PLINT PLFLT PLFLT PLINT PLFLT PLINT const PLINT const char *const PLINT nx
void PLOT3DC__(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLFLT *clevel, PLINT *nlevel, PLINT *lx)
void PLFLT PLINT PLINT PLFLT x
void PLMESH(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLINT *lx)
void plAlloc2dGrid(PLFLT ***f, PLINT nx, PLINT ny)
void PLFLT PLINT PLINT PLFLT PLFLT PLFLT PLFLT PLINT PLINT PLINT PLFLT PLFLT PLINT PLFLT PLINT const PLINT const char *const PLINT const char *const const PLFLT const PLINT const PLINT const PLFLT * a
void c_plsurf3d(const PLFLT *x, const PLFLT *y, const PLFLT *const *z, PLINT nx, PLINT ny, PLINT opt, const PLFLT *clevel, PLINT nlevel)
void PLFLT PLINT PLINT PLFLT PLFLT y
void PLOT3D(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLBOOL *side, PLINT *lx)
void c_plot3dc(const PLFLT *x, const PLFLT *y, const PLFLT *const *z, PLINT nx, PLINT ny, PLINT opt, const PLFLT *clevel, PLINT nlevel)
void PLMESHC(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLFLT *clevel, PLINT *nlevel, PLINT *lx)
void plabort(const char *errormsg)
void PLSURF3D(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLFLT *clevel, PLINT *nlevel, PLINT *lx)
void PLOT3DC(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLFLT *clevel, PLINT *nlevel, PLINT *lx)