Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
083851fa
Commit
083851fa
authored
13 years ago
by
Tristan Carrier Baudouin
Browse files
Options
Downloads
Patches
Plain Diff
changes
parent
18dd0ab6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/Levy3D.cpp
+59
-0
59 additions, 0 deletions
Mesh/Levy3D.cpp
Mesh/Levy3D.h
+29
-2
29 additions, 2 deletions
Mesh/Levy3D.h
with
88 additions
and
2 deletions
Mesh/Levy3D.cpp
+
59
−
0
View file @
083851fa
...
@@ -1032,6 +1032,65 @@ void LpSmoother::improve_region(GRegion* gr){
...
@@ -1032,6 +1032,65 @@ void LpSmoother::improve_region(GRegion* gr){
//regions.push_back(gr);
//regions.push_back(gr);
//meshGRegion mesher(regions);
//meshGRegion mesher(regions);
//mesher(gr);
//mesher(gr);
delete
octree
;
}
/*********class Wrap*********/
Wrap
::
Wrap
(){
iteration
=
0
;
initial_energy
=
-
1.0
;
}
Wrap
::~
Wrap
(){}
int
Wrap
::
get_p
(){
return
p
;
}
int
Wrap
::
get_dimension
(){
return
dimension
;
}
int
Wrap
::
get_iteration
(){
return
iteration
;
}
int
Wrap
::
get_max_iteration
(){
return
max_iteration
;
}
double
Wrap
::
get_initial_energy
(){
return
initial_energy
;
}
MElementOctree
*
Wrap
::
get_octree
(){
return
octree
;
}
void
Wrap
::
set_p
(
int
new_p
){
p
=
new_p
;
}
void
Wrap
::
set_dimension
(
int
new_dimension
){
dimension
=
new_dimension
;
}
void
Wrap
::
set_iteration
(
int
new_iteration
){
iteration
=
new_iteration
;
}
void
Wrap
::
set_max_iteration
(
int
new_max_iteration
){
max_iteration
=
new_max_iteration
;
}
void
Wrap
::
set_initial_energy
(
double
new_initial_energy
){
initial_energy
=
new_initial_energy
;
}
void
Wrap
::
set_octree
(
MElementOctree
*
new_octree
){
octree
=
new_octree
;
}
}
/*********functions*********/
/*********functions*********/
...
...
This diff is collapsed.
Click to expand it.
Mesh/Levy3D.h
+
29
−
2
View file @
083851fa
...
@@ -48,9 +48,9 @@ class VoronoiVertex{
...
@@ -48,9 +48,9 @@ class VoronoiVertex{
/*********class Metric*********/
/*********class Metric*********/
class
Metric
{
class
Metric
{
private
:
private:
double
m11
,
m12
,
m13
,
m21
,
m22
,
m23
,
m31
,
m32
,
m33
;
double
m11
,
m12
,
m13
,
m21
,
m22
,
m23
,
m31
,
m32
,
m33
;
public
:
public:
Metric
();
Metric
();
~
Metric
();
~
Metric
();
void
set_m11
(
double
);
void
set_m11
(
double
);
...
@@ -153,6 +153,33 @@ class LpSmoother{
...
@@ -153,6 +153,33 @@ class LpSmoother{
void
improve_region
(
GRegion
*
);
void
improve_region
(
GRegion
*
);
};
};
/*********class Wrap*********/
class
Wrap
{
private:
int
p
;
int
dimension
;
int
iteration
;
int
max_iteration
;
double
initial_energy
;
MElementOctree
*
octree
;
public:
Wrap
();
~
Wrap
();
int
get_p
();
int
get_dimension
();
int
get_iteration
();
int
get_max_iteration
();
double
get_initial_energy
();
MElementOctree
*
get_octree
();
void
set_p
(
int
);
void
set_dimension
(
int
);
void
set_iteration
(
int
);
void
set_max_iteration
(
int
);
void
set_initial_energy
(
double
);
void
set_octree
(
MElementOctree
*
);
};
/*********functions*********/
/*********functions*********/
bool
inside_domain
(
MElementOctree
*
,
double
,
double
,
double
);
bool
inside_domain
(
MElementOctree
*
,
double
,
double
,
double
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment