LiangliangNan / Easy3D

A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
GNU General Public License v3.0
1.35k stars 243 forks source link

[Feature request] #172

Closed jigneshBadrakhiya closed 11 months ago

jigneshBadrakhiya commented 11 months ago

wire fame back-face culling

LiangliangNan commented 11 months ago

BFC works well only when handling closed convex objects, and in most real-world cases we are handling non-perfect models. Thus I don't think it is worth to enable it by default. But if you want, you can simply enable it by adding the following two lines when you initialize OpenGL:

       glEnable(GL_CULL_FACE);
       glCullFace(GL_BACK);