summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid3d.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/grid3d.C')
-rw-r--r--tksao/frame/grid3d.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/tksao/frame/grid3d.C b/tksao/frame/grid3d.C
index 877a457..681f68d 100644
--- a/tksao/frame/grid3d.C
+++ b/tksao/frame/grid3d.C
@@ -76,6 +76,23 @@ void Grid3d::doit(RenderMode rm)
int naxes = astGetI(ast,"Naxes");
switch (naxes) {
case 1:
+ {
+ AstFrame* zbase = astFrame(2,"");
+ AstFrame* zcurr = astFrame(2,"");
+ AstMapping* zmap = (AstMapping*)astUnitMap(2,"");
+
+ AstFrame* wcsbase = (AstFrame*)astGetFrame(ast,AST__BASE);
+ AstFrame* wcscurr = (AstFrame*)astGetFrame(ast,AST__CURRENT);
+ AstMapping* wcsmap = (AstMapping*)astGetMapping(ast,AST__BASE,AST__CURRENT);
+
+ AstCmpFrame* cmpwcsbase = astCmpFrame(wcsbase,zbase,"");
+ AstCmpFrame* cmpwcscurr = astCmpFrame(wcscurr,zcurr,"");
+ AstCmpMap* cmpwcsmap = astCmpMap(wcsmap,zmap,0,"");
+
+ ast = astFrameSet(cmpwcsbase,"");
+ astAddFrame(ast, AST__CURRENT, cmpwcsmap, cmpwcscurr);
+ }
+ break;
case 2:
{
AstFrame* zbase = astFrame(1,"");