PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "config_pnmimage.h"
#include "pfmFile.h"
#include "virtualFileSystem.h"
#include "pandaFileStream.h"
#include "littleEndian.h"
#include "bigEndian.h"
#include "cmath.h"
#include "pnmImage.h"
#include "pnmReader.h"
#include "pnmWriter.h"
#include "string_utils.h"
#include "look_at.h"
Go to the source code of this file.
Functions | |
PT (BoundingHexahedron) PfmFile | |
Computes the minmax bounding volume of the points in 3-D space, assuming the points represent a mostly-planar surface. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file pfmFile.cxx.
PT | ( | BoundingHexahedron | ) |
Computes the minmax bounding volume of the points in 3-D space, assuming the points represent a mostly-planar surface.
This algorithm works by sampling the (square) sample_radius pixels at the four point_dist corners around the center (cx - pd, cx + pd) and so on, to approximate the plane of the surface. Then all of the points are projected into that plane and the bounding volume of the entire mesh within that plane is determined. If points_only is true, the bounding volume of only those four points is determined.
center, point_dist and sample_radius are in UV space, i.e. in the range 0..1. Computes the average of all the point within sample_radius (manhattan distance) and the indicated point.
The point coordinates are given in UV space, in the range 0..1. Copies a rectangular area of another image into a rectangular area of this image. Both images must already have been initialized. The upper-left corner of the region in both images is specified, and the size of the area; if the size is omitted, it defaults to the entire other image, or the largest piece that will fit.
Definition at line 1690 of file pfmFile.cxx.