Article View: comp.windows.x.pex
Article #35problems with pset_of_fill_area_set3_data
From: Stefano Longano
Date: Wed, 08 Apr 1992 15:45
Date: Wed, 08 Apr 1992 15:45
42 lines
2134 bytes
2134 bytes
Hi all,
I'm a rather novice phigs/pex programmer and I'm having some problems
using the phigs sample implementation. I'm using the X11R5 pl3 on a SUN
Sparcstation 1+ 8 bit color.
I'm writing yet another program that is able to show and rotate molecules.
My problem is that I have to draw many balls on the display, with many
different colors. I thought that it would be wise to have a structure that
is a sphere (and another for the bond) and than scale, translate and color it
as needed executing the struct within the structs that describe the various
molecule substructures.
With the code I append I get only wireframes, not solid with color.
What am I doing wrong?
Reading the docs it should work.
Thanks in advance.
Ciao
Stefano
----------Relevant code fragment---------------------------------
popen_struct(ATOM_STRUCTURE);
pset_of_fill_area_set3_data(PFACET_NONE, PEDGE_NONE, PVERT_COORD,
PINDIRECT, Atom_nfacets, &Atom_fdata,
(Pedge_data_list_list *)NULL,
&Atom_vlist, &Atom_vdata);
pclose_struct();
for (i=0 ; i < ntypes ; ++i)
{
popen_struct(FIRST_TYPE+i);
pset_edge_flag(PEDGE_ON);
pset_int_style(PSTYLE_SOLID);
pset_int_colr_ind(i);
tmp_vector.delta_x = types[i].radius;
tmp_vector.delta_y = types[i].radius;
tmp_vector.delta_z = types[i].radius;
pscale3(&tmp_vector, &status, temp_mat);
pset_local_tran3(temp_mat, PTYPE_REPLACE);
}
--
Stefano Longano | stefano@itnsg1.cineca.it
Dipartimento di Informatica | Home: stefano@angmar.sublink.org
Universita' di Trento | Office phone: +39 (461) 882526
38050 Pante' di Povo (TN) |
Technical Details
Message-ID:
<1992Apr8.154548.4962@itnsg1.cineca.it>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!itnsg1.cineca.it!stefanoShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!itnsg1.cineca.it!stefano From: stefano@itnsg1.cineca.it (Stefano Longano) Subject: problems with pset_of_fill_area_set3_data Message-ID: <1992Apr8.154548.4962@itnsg1.cineca.it> Keywords: phigs fill_area_set Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia Date: Wed, 8 Apr 1992 15:45:48 GMT Lines: 42