← Back to team overview

yade-dev team mailing list archive

QGL cutting plane

 

Hello

I found a fast, dirty, and lazy way of implementing a cutting plane in 
the QGL view.

Line 215 of camera.cpp :

 const float cuttingDistance = 0.5;// 0 = see the full view, 1=see 
nothing, 0.5=cut half of the volume
  float z = distanceToSceneCenter() - 
zClippingCoefficient()*sceneRadius()*(1.f-2*cuttingDistance);

Now, as I would need days to create new widgets alone, could somebody 
link this "cuttingDistance" float to a nice button in the QtGUI?

Perhaps a setCuttingDistance function could be created and Python-binded 
too?

Bruno


 


-- 
 
_______________
Chareyre Bruno
Maitre de conference

Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________

_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev



Follow ups