Sponsored Content
Full Discussion: FORTRAN Extends
Top Forums Programming FORTRAN Extends Post 302921934 by kristinu on Tuesday 21st of October 2014 07:54:48 AM
Old 10-21-2014
A cuboid is not a prism.

A cuboid is a polyhedron bounded by six quadrilateral faces.

A prism is a polyhedron where all vertices lie in two parallel planes, having an equal number of vertices in each of the two parallel planes, and the n-point polygons of the two parallel bases are congruent to one another with the same rotational orientation.
 

We Also Found This Discussion For You

1. Programming

Problem with <T extends Comparable<? super T>>>

Hi guys, I have a three class: 1. Class Algorithm having max() finding maximum value in a Collection public class Algorithm { public static <T extends Comparable<T>> T max(Collection<? extends T> coll) { T max = coll.iterator().next(); for (T elm : coll) { ... (0 Replies)
Discussion started by: majid.merkava
0 Replies
polygon_z_normal(3alleg4)					  Allegro manual					 polygon_z_normal(3alleg4)

NAME
polygon_z_normal, polygon_z_normal_f - Finds the Z component of the normal vector to three vertices. Allegro game programming library. SYNOPSIS
#include <allegro.h> fixed polygon_z_normal(const V3D *v1, const V3D *v2, const V3D *v3); float polygon_z_normal_f(const V3D_f *v1, const V3D_f *v2, const V3D_f *v3); DESCRIPTION
Finds the Z component of the normal vector to the specified three vertices (which must be part of a convex polygon). This is used mainly in back-face culling. The back-faces of closed polyhedra are never visible to the viewer, therefore they never need to be drawn. This can cull on average half the polygons from a scene. If the normal is negative the polygon can safely be culled. If it is zero, the polygon is per- pendicular to the screen. However, this method of culling back-faces must only be used once the X and Y coordinates have been projected into screen space using persp_project() (or if an orthographic (isometric) projection is being used). Note that this function will fail if the three vertices are co-linear (they lie on the same line) in 3D space. SEE ALSO
cross_product(3alleg4), ex3d(3alleg4) Allegro version 4.4.2 polygon_z_normal(3alleg4)
All times are GMT -4. The time now is 08:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy