Quantcast
Viewing all articles
Browse latest Browse all 40524

Draw half cylinder, or two different textures for same cylinder

found a hackish solution by making this small change in ofMesh.cpp, function ofMesh ofMesh::cylinder( ... ) {

from

float angleIncRadius = -1 * ( TWO_PI/((float)radiusSegments-1.f));

to

float angleIncRadius = -1 * ( (TWO_PI/ divide ) /((float)radiusSegments-1.f));

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>