Write a program to display the visible surface of a convex polyhedron using the bsp tree method.
Answers
Answered by
1
bsp_tree(poly* current_poly)
{
while(still_polygons)
{
partition_polygons(current_poly);
}
bsp_tree(current_poly->left);
bsp_tree(current_poly->right);
}
{
while(still_polygons)
{
partition_polygons(current_poly);
}
bsp_tree(current_poly->left);
bsp_tree(current_poly->right);
}
Similar questions
Biology,
7 months ago
Hindi,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Physics,
1 year ago