37 for ( i = 0; i < *
nx; i++ )
39 for ( j = 0; j < *
ny; j++ )
41 a[i][j] = z[i + j * *lx];
45 c_plot3dc( x, y, (
const PLFLT *
const *) a, *nx, *ny, *opt, clevel, *nlevel );
56 PLOT3DC__( x, y, z, nx, ny, opt, clevel, nlevel, lx );
72 if ( !( temp = (
PLFLT **) malloc( (
size_t) *nx *
sizeof (
PLFLT * ) ) ) )
74 plabort(
"PLSURF3D: Out of memory" );
78 for ( i = 0; i < *
nx; i++ )
80 if ( !( temp[i] = (
PLFLT *) malloc( (
size_t) *ny *
sizeof (
PLFLT ) ) ) )
84 for ( ii = 0; ii < i - 1; ii++ )
85 free( (
void *) temp[i] );
86 free( (
void *) temp );
87 plabort(
"PLSURF3D: Out of memory" );
92 for ( i = 0; i < *
nx; i++ )
93 for ( j = 0; j < *
ny; j++ )
94 temp[i][j] = *( z + j * *lx + i );
96 c_plsurf3d( x, y, (
const PLFLT *
const *) temp, *nx, *ny, *opt, clevel, *nlevel );
98 for ( i = 0; i < *
nx; i++ )
99 free( (
void *) temp[i] );
101 free( (
void *) temp );
108 PLINT optlocal, nlevel = 0;
111 optlocal = *opt |
MESH;
112 PLOT3DC__( x, y, z, nx, ny, &optlocal, &clevel, &nlevel, lx );
121 optlocal = *opt |
MESH;
122 PLOT3DC__( x, y, z, nx, ny, &optlocal, clevel, nlevel, lx );
130 PLINT optlocal, nlevel = 0;
133 optlocal = *opt | ( *side == 1 ?
DRAW_SIDES : 0 );
134 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 PLOT3D(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLINT *side, PLINT *lx)
void PLSURF3D(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 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 PLMESHC(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)
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 PLFLT y
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 plabort(const char *errormsg)
void PLMESH(PLFLT *x, PLFLT *y, PLFLT *z, PLINT *nx, PLINT *ny, PLINT *opt, PLINT *lx)