""" pygl/testnurb.py: CCP4MG Molecular Graphics Program Copyright (C) 2001-2005 University of York, CCLRC This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3, modified in accordance with the provisions of the license to address the requirements of UK law. You should have received a copy of the modified GNU Lesser General Public License along with this library. If not, copies may be downloaded from http://www.ccp4.ac.uk/ccp4license.php This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. """ from COORDS import * from OPENGL import * ctrlpoints = ptrcreate("double",0,12) ptrset(ctrlpoints,-4.0,0) ptrset(ctrlpoints,-4.0,1) ptrset(ctrlpoints,0.0,2) ptrset(ctrlpoints,-2.0,3) ptrset(ctrlpoints,4.0,4) ptrset(ctrlpoints,0.0,5) ptrset(ctrlpoints,2.0,6) ptrset(ctrlpoints,-4.0,7) ptrset(ctrlpoints,0.0,8) ptrset(ctrlpoints,4.0,9) ptrset(ctrlpoints,4.0,10) ptrset(ctrlpoints,0.0,11) set_control_points(ctrlpoints,4,3)