home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!nuscc!solomon.technet.sg!spec01
- From: spec01@solomon.technet.sg (Quak Wan Ling)
- Newsgroups: comp.graphics
- Subject: PHIGS Question
- Message-ID: <1992Jul24.033521.6861@nuscc.nus.sg>
- Date: 24 Jul 92 03:35:21 GMT
- Sender: usenet@nuscc.nus.sg
- Organization: National University of Singapore
- Lines: 40
-
-
- hi .. I need to shade and unshade some objects quickly in a phigs
- application. I thought of using the pset_int_ind(set interior index)
- pset_int_rep(set interior representation) and pset_indiv_asf(set
- individual aspect flag) functions to achieve the effect.
- However, due to some unknow reasons(which might be my
- misinterpretation or mebber the phigs library bug) I could not
- achieve what I want. Attach is a fragment of codes of what I did.
-
- Pint_bundl rep;
- Ppoint3 *pt1;
-
- pt1 = (Ppoint3 *)malloc(4*sizeof(Ppoint3));
- pt1[0].x = pt1[0].y = pt1[0].z = 0.0;
- pt1[1].x = 0.3; pt1[1].y = 0.7; pt1[1].z = 0.5;
- rep.style = PSOLID;
- rep.index = 1;
- rep.colr = 4;
- pset_int_rep(1, 3, &rep);
- pinq_pred_int_rep(1, 3, &err, &orep);
- printf("color : %d style : %d\n",orep.colr, orep.style);
- /* Note that the style, color are not set */
- ...
- popst(1);
- pset_indiv_asf(PINTERIOR_COLOUR_INDEX, PBUNDLED);
- pset_indiv_asf(PINTERIOR_STYLE, PBUNDLED);
- pset_int_ind(3);
- pfill_area(4, pt);
- pclst();
- ppost(1,1,0.);
- prst(1,1);
- prqlc(1,1,&stat,&view,&pt);
- pclwk(1);
- pclph();
-
- Can any kind soul point out to me what's wrong ? Or mail me a
- fragment of codes that solve the same purpose.
- Thanks in advance...
-
-
-