示例#1
0
文件: api.c 项目: taohonker/Ovito
void rt_fcylinder3fv(SceneHandle scene, void * tex, 
                     const float *ctr, const float *axis, float rad) {
  vector vctr, vaxis;
  vctr.x = ctr[0];   vctr.y = ctr[1];   vctr.z = ctr[2];
  vaxis.x = axis[0]; vaxis.y = axis[1]; vaxis.z = axis[2];
  add_bounded_object((scenedef *) scene, newfcylinder(tex, vctr, vaxis, rad));
}
示例#2
0
void rt_fcylinder(void * tex, vector ctr, vector axis, apiflt rad) {
  add_object(newfcylinder(tex, (vector)ctr, (vector)axis, rad));
}
示例#3
0
文件: api.c 项目: taohonker/Ovito
void rt_fcylinder(SceneHandle scene, void * tex, apivector ctr, apivector axis, flt rad) {
  add_bounded_object((scenedef *) scene, newfcylinder(tex, ctr, axis, rad));
}