#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "MBTagConventions.hpp"
#include <iostream>
#include <fstream>
#include <limits>
#include <cstdlib>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | CartVect3D |
Macros | |
#define | USAGE_ERROR 1 |
#define | READ_ERROR 2 |
#define | WRITE_ERROR 3 |
#define | SURFACE_NOT_FOUND 4 |
#define | OTHER_ERROR 5 |
Enumerations | |
enum | FileType { POSTSCRIPT , GNUPLOT , SVG } |
Functions | |
static void | usage_error (const char *name) |
static CartVect3D | operator- (const CartVect3D &a, const CartVect3D &b) |
static double | operator% (const CartVect3D &a, const CartVect3D &b) |
static CartVect3D | operator* (const CartVect3D &a, const CartVect3D &b) |
static void | find_rotation (CartVect3D plane_normal, double matrix[3][3]) |
static void | transform_point (CartVect3D &point, double matrix[3][3]) |
static void | write_gnuplot (std::ostream &stream, const std::vector< CartVect3D > &list) |
static void | write_svg (std::ostream &stream, const std::vector< CartVect3D > &list) |
static void | write_eps (std::ostream &stream, const std::vector< CartVect3D > &list, int surface_id) |
int | main (int argc, char *argv[]) |
static void | box_max (CartVect3D &cur_max, const CartVect3D &pt) |
static void | box_min (CartVect3D &cur_min, const CartVect3D &pt) |
#define OTHER_ERROR 5 |
Definition at line 15 of file surfplot.cpp.
#define READ_ERROR 2 |
Definition at line 12 of file surfplot.cpp.
#define SURFACE_NOT_FOUND 4 |
Definition at line 14 of file surfplot.cpp.
#define USAGE_ERROR 1 |
Definition at line 11 of file surfplot.cpp.
#define WRITE_ERROR 3 |
Definition at line 13 of file surfplot.cpp.
enum FileType |
Enumerator | |
---|---|
POSTSCRIPT | |
GNUPLOT | |
SVG |
Definition at line 195 of file surfplot.cpp.
|
static |
Definition at line 390 of file surfplot.cpp.
References CartVect3D::x, and CartVect3D::y.
Referenced by moab::AdaptiveKDTree::best_subdivision_plane(), moab::AdaptiveKDTree::best_subdivision_snap_plane(), moab::AdaptiveKDTree::best_vertex_median_plane(), moab::AdaptiveKDTree::best_vertex_sample_plane(), moab::SmoothFace::bounding_box(), moab::corners_from_box(), moab::Tree::create_root(), moab::BSPTree::create_tree(), moab::AdaptiveKDTree::intersect_children_with_elems(), main(), moab::ElemUtil::point_in_trilinear_hex(), moab::GeomUtil::ray_box_intersect(), moab::GeomUtil::segment_box_intersect(), moab::BSPTree::set_tree_box(), write_eps(), and write_svg().
|
static |
Definition at line 398 of file surfplot.cpp.
References CartVect3D::x, and CartVect3D::y.
Referenced by moab::AdaptiveKDTree::best_subdivision_plane(), moab::AdaptiveKDTree::best_subdivision_snap_plane(), moab::AdaptiveKDTree::best_vertex_median_plane(), moab::AdaptiveKDTree::best_vertex_sample_plane(), moab::SmoothFace::bounding_box(), moab::corners_from_box(), moab::Tree::create_root(), moab::BSPTree::create_tree(), moab::AdaptiveKDTree::intersect_children_with_elems(), main(), moab::ElemUtil::point_in_trilinear_hex(), moab::GeomUtil::ray_box_intersect(), moab::GeomUtil::segment_box_intersect(), moab::BSPTree::set_tree_box(), write_eps(), and write_svg().
|
static |
Definition at line 128 of file surfplot.cpp.
References CartVect3D::len(), CartVect3D::x, CartVect3D::y, and CartVect3D::z.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 204 of file surfplot.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, find_rotation(), GEOM_DIMENSION_TAG_NAME, GNUPLOT, CartVect3D::len(), MB_FILE_DOES_NOT_EXIST, MB_SUCCESS, MB_TYPE_INTEGER, MBENTITYSET, OTHER_ERROR, POSTSCRIPT, READ_ERROR, moab::Range::size(), SURFACE_NOT_FOUND, SVG, transform_point(), moab::Interface::UNION, usage_error(), write_eps(), write_gnuplot(), write_svg(), CartVect3D::x, CartVect3D::y, and CartVect3D::z.
|
static |
Definition at line 108 of file surfplot.cpp.
References CartVect3D::x, CartVect3D::y, and CartVect3D::z.
|
static |
Definition at line 113 of file surfplot.cpp.
References CartVect3D::x, CartVect3D::y, and CartVect3D::z.
|
static |
Definition at line 103 of file surfplot.cpp.
References CartVect3D::x, CartVect3D::y, and CartVect3D::z.
|
static |
Definition at line 178 of file surfplot.cpp.
References CartVect3D::x, CartVect3D::y, and CartVect3D::z.
Referenced by main().
|
static |
|
static |
Definition at line 406 of file surfplot.cpp.
References box_max(), box_min(), CartVect3D::x, and CartVect3D::y.
Referenced by main().
|
static |
|
static |
Definition at line 485 of file surfplot.cpp.
References box_max(), box_min(), size, CartVect3D::x, and CartVect3D::y.
Referenced by main().