Subversion Repositories gelsvn

Rev

Rev 642 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
568 jab 1
//
2
//  polarize.h
3
//  GEL
4
//
5
//  Created by J. Andreas Bærentzen on 18/03/12.
6
//  Copyright 2012 __MyCompanyName__. All rights reserved.
7
//
8
 
631 janba 9
#include <CGLA/Vec2d.h>
568 jab 10
#include <CGLA/Vec3d.h>
11
#include <HMesh/Manifold.h>
12
#include <HMesh/AttributeVector.h>
13
 
14
#ifndef __POLARIZE_H__
15
#define __POLARIZE_H__
16
 
631 janba 17
void polarize_mesh(HMesh::Manifold& m, HMesh::VertexAttributeVector<double>& fun, double vmin, double vmax, const int divisions, HMesh::VertexAttributeVector<CGLA::Vec2d>& parametrization);
568 jab 18
 
643 janba 19
void simplify_polar_mesh(HMesh::Manifold& m, double frac);
20
void smooth_and_refit(HMesh::Manifold& m1,  HMesh::Manifold& m2, int iter, int dim);
21
 
572 jab 22
void make_height_fun(const HMesh::Manifold& m, HMesh::VertexAttributeVector<double>& fun, 
23
                     double& vmin, double &vmax);
568 jab 24
 
642 janba 25
void make_adf_fun(HMesh::Manifold& m, double t, HMesh::VertexAttributeVector<double>& fun,
26
                  double& vmin, double& vmax);
27
 
568 jab 28
#endif