source: GTP/trunk/Lib/Vis/Preprocessing/src/mixkit/MxStdSlim.cxx @ 1097

Revision 1097, 1.0 KB checked in by mattausch, 18 years ago (diff)
Line 
1/************************************************************************
2
3  Surface simplification using quadric error metrics
4
5  Copyright (C) 1998 Michael Garland.  See "COPYING.txt" for details.
6 
7  $Id: MxStdSlim.cxx,v 1.1 2002/09/24 16:53:54 wimmer Exp $
8
9 ************************************************************************/
10
11#include "stdmix.h"
12#include "MxStdSlim.h"
13
14MxStdSlim::MxStdSlim(MxStdModel *m0)
15    : heap(64)
16{
17    m = m0;
18
19    // Externally visible variables
20    placement_policy = MX_PLACE_OPTIMAL;
21    weighting_policy = MX_WEIGHT_AREA;
22    boundary_weight = 1000.0;
23    compactness_ratio = 0.0;
24    meshing_penalty = 1.0;
25    local_validity_threshold = 0.0;
26    vertex_degree_limit = 24;
27    will_join_only = false;
28
29    valid_faces = 0;
30    valid_verts = 0;
31    is_initialized = false;
32
33    uint i;
34    for(i=0; i<m->face_count(); i++) if(m->face_is_valid(i))  valid_faces++;
35    for(i=0; i<m->vert_count(); i++) if(m->vertex_is_valid(i))  valid_verts++;
36}
Note: See TracBrowser for help on using the repository browser.