3D modeling optimization