MeshKit  1.0
QslimOptions Class Reference

Place holder for decimation options. More...

#include <QslimOptions.hpp>

List of all members.

Public Member Functions

 QslimOptions ()
virtual ~QslimOptions ()

Public Attributes

int face_target
 decimation stops when number of triangle is less than face_target; default 0
double error_tolerance
 decimation can stop if the error is bigger than the given tolerance; default: HUGE (very large, so it is not stopping because of this)
int will_use_plane_constraint
 will use plane constraint; default 1 (true)
int will_use_vertex_constraint
 will use vertex constraint; default : 0 (false)
int will_preserve_boundaries
 to preserve boundary edges; default 0 (false)
int will_preserve_mesh_quality
 cost of creating inverted elements is artificially increased, so it should not happen; default: false
int will_constrain_boundaries
 triggered by -B option; it will add an additional cost when boundary edges are collapsed used in conjunction with the boundary constraint weight: default false
double boundary_constraint_weight
 see the will_constrain_boundaries option
int will_weight_by_area
 used if areas are planar ; default 0 (no)
int height_fields
 for terrain-type data, do not allow reverse of the normal in z direction; default 0 (no check); triggered by -p option
int timingIntervals
 performance decimation intervals; default 10 intervals
int plotCost
 create a tag with the error cost at each vertex in the final mesh (default 0, no)
int useDelayedDeletion
 default true. If used, it will delay deletion of edges and triangles until the end of decimation
int placement_policy
 default 3, optimal placement policy, for the vertex when an edge is collapsed; other options are 0=end points, 1=end points or middle point, 2 = on the line
double pair_selection_tolerance
 create the pairs based on this minimum distance (if the nodes are not connected); by default, the pairs are created only between connected vertices
std::ostream * logfile
 output a debug file
int selected_output
 debug level in output
int create_range
 create the range, with contiguous handles, and delete the initial set; default false
int topology
 keep the topology unchanged; Euler characteristic would remain the same

Detailed Description

Place holder for decimation options.

Options for decimation can be passed with the test driver.

  • -o <file> Output final model to given file, using moab output conventions
  • -s <count> Set the target number of faces.
  • -i <timings> Intervals for timing reports.
  • -e <thresh> Set the maximum error tolerance.
  • -t <t> Set pair selection tolerance.
  • -Q[pv] Select what constraint quadrics to use [default=p].
  • -On Optimal placement policy. 0=endpoints, 1=endormid, 2=line, 3=optimal [default]
  • -B <weight> Use boundary preservation planes with given weight.
  • -b preserve boundary (do not use with -B option)
  • -m Preserve mesh quality.
  • -a Enable area weighting.
  • -p Height fields positivity. Used for height fields, assume
  • -k maintain Euler characteristic of the model (topology unchanged) triangles are originally positively oriented.
  • -d Use delayed deletion, as opposed to merging
  • -c keep costs in a (sparse!!!!) tag
  • -l log file
  • -L output level in the log file
Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 53 of file QslimOptions.hpp.


Constructor & Destructor Documentation

Definition at line 12 of file QslimOptions.cpp.

~QslimOptions ( ) [virtual]

Definition at line 43 of file QslimOptions.cpp.


Member Data Documentation

see the will_constrain_boundaries option

Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 79 of file QslimOptions.hpp.

create the range, with contiguous handles, and delete the initial set; default false

Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 109 of file QslimOptions.hpp.

decimation can stop if the error is bigger than the given tolerance; default: HUGE (very large, so it is not stopping because of this)

Examples:
example_qslimmesher.cpp.

Definition at line 61 of file QslimOptions.hpp.

decimation stops when number of triangle is less than face_target; default 0

Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 58 of file QslimOptions.hpp.

for terrain-type data, do not allow reverse of the normal in z direction; default 0 (no check); triggered by -p option

Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 85 of file QslimOptions.hpp.

std::ostream* logfile

output a debug file

Examples:
example_qslimmesher.cpp.

Definition at line 103 of file QslimOptions.hpp.

create the pairs based on this minimum distance (if the nodes are not connected); by default, the pairs are created only between connected vertices

Examples:
example_qslimmesher.cpp.

Definition at line 100 of file QslimOptions.hpp.

default 3, optimal placement policy, for the vertex when an edge is collapsed; other options are 0=end points, 1=end points or middle point, 2 = on the line

Examples:
example_qslimmesher.cpp.

Definition at line 97 of file QslimOptions.hpp.

int plotCost

create a tag with the error cost at each vertex in the final mesh (default 0, no)

Examples:
example_qslimmesher.cpp.

Definition at line 91 of file QslimOptions.hpp.

debug level in output

Examples:
example_qslimmesher.cpp.

Definition at line 106 of file QslimOptions.hpp.

performance decimation intervals; default 10 intervals

Examples:
example_qslimmesher.cpp.

Definition at line 88 of file QslimOptions.hpp.

int topology

keep the topology unchanged; Euler characteristic would remain the same

Examples:
example_qslimmesher.cpp.

Definition at line 113 of file QslimOptions.hpp.

default true. If used, it will delay deletion of edges and triangles until the end of decimation

Examples:
example_qslimmesher.cpp.

Definition at line 94 of file QslimOptions.hpp.

triggered by -B option; it will add an additional cost when boundary edges are collapsed used in conjunction with the boundary constraint weight: default false

Examples:
example_qslimmesher.cpp, and example_setpnt2quad.cpp.

Definition at line 76 of file QslimOptions.hpp.

to preserve boundary edges; default 0 (false)

Examples:
example_qslimmesher.cpp.

Definition at line 70 of file QslimOptions.hpp.

cost of creating inverted elements is artificially increased, so it should not happen; default: false

Examples:
example_qslimmesher.cpp.

Definition at line 73 of file QslimOptions.hpp.

will use plane constraint; default 1 (true)

Examples:
example_qslimmesher.cpp.

Definition at line 64 of file QslimOptions.hpp.

will use vertex constraint; default : 0 (false)

Examples:
example_qslimmesher.cpp.

Definition at line 67 of file QslimOptions.hpp.

used if areas are planar ; default 0 (no)

Examples:
example_qslimmesher.cpp.

Definition at line 82 of file QslimOptions.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines