Esempio n. 1
0
static PyObject*
set(PygtsPoint *self, PyObject *args)
{
  gdouble x=0,y=0,z=0;

  SELF_CHECK

  /* Parse the args */
  if(! PyArg_ParseTuple(args, "|ddd",  &x,&y,&z)) {
    return NULL;
  }

  gts_point_set(PYGTS_POINT_AS_GTS_POINT(self),x,y,z);

  Py_INCREF(Py_None);
  return Py_None;
}
Esempio n. 2
0
GtsVertex *gts_vertex_new( GtsVertexClass *klass, gdouble x, gdouble y, gdouble z )
{
  /* phantom */ GtsVertex *v;
  gts_point_set( (GtsPoint*)gts_object_new( (int)( &klass->parent_class.parent_class ) ), x, y, z );
  return *ebp_88;
}