-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c725291
commit 8511790
Showing
87 changed files
with
1,820 additions
and
279 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
example.cpp | ||
edge.cpp | ||
face.cpp | ||
polyhedron-front-edge.cpp | ||
polyhedron-front-face.cpp | ||
polyhedral-set.cpp | ||
polyhedron.cpp | ||
relations.cpp | ||
surface-front-edge.cpp | ||
surface-front-vert.cpp | ||
surface-edge.cpp | ||
F:\Programming\Programs\VsPrograms\polymgen\src\core\polyhedron.cpp(1730,22): warning C4244: аргумент: преобразование "size_t" в "real_t", возможна потеря данных | ||
surface-face.cpp | ||
F:\Programming\Programs\VsPrograms\polymgen\src\core\surface\surface-edge.cpp(34,69): warning C4244: аргумент: преобразование "size_t" в "real_t", возможна потеря данных | ||
tetr.cpp | ||
polymesh.cpp | ||
polyshell.cpp | ||
spatial-algs.cpp | ||
polysgen.cpp | ||
F:\Programming\Programs\VsPrograms\polymgen\src\core\surface\surface-face.cpp(646,22): warning C4244: аргумент: преобразование "int" в "real_t", возможна потеря данных | ||
Создание кода | ||
372 of 2294 functions (16.2%) were compiled, the rest were copied from previous compilation. | ||
140 functions were new in current compilation | ||
17 functions had inline decision re-evaluated but remain unchanged | ||
Создание кода завершено | ||
polymgen.vcxproj -> F:\Programming\Programs\VsPrograms\polymgen\Release\polymgen.exe |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#TargetFrameworkVersion=v4.0:PlatformToolSet=v142:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0 | ||
Release|Win32|F:\Programming\Programs\VsPrograms\polymgen\| |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
#include "../polyspt/simplex.h" | ||
|
||
|
||
namespace pmg { | ||
|
||
template <std::size_t Dim, typename Real> | ||
Real quality(const spt::simplex_v<3, Dim, Real>* simp) | ||
{ | ||
std::array<Real, 4> sqr_prods = | ||
{ | ||
static_cast<Real>(1.0), | ||
static_cast<Real>(1.0), | ||
static_cast<Real>(1.0), | ||
static_cast<Real>(1.0) | ||
}; | ||
for (std::size_t i = 0; i < 4; i++) | ||
for (std::size_t j = 0; j < 4; j++) | ||
if (j != i) | ||
sqr_prods[i] *= (simp->vertices[j]->pos - simp->vertices[i]->pos).sqr_magnitude(); | ||
|
||
Real max_sqr_prod = std::max({ sqr_prods[0], sqr_prods[1], sqr_prods[2], sqr_prods[3] }); | ||
|
||
constexpr auto CONST_12_SQRT2 = static_cast<Real>(8.4852813742385702928101323452582); | ||
|
||
return CONST_12_SQRT2 * simp->volume() / std::sqrt(max_sqr_prod); | ||
} | ||
|
||
} // namespace pmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
later/indexed_mesh/indexed_mesh-base.h → later/polyspt/indexed_mesh-base.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#pragma once | ||
|
||
|
||
namespace pmg { | ||
namespace spt { | ||
|
||
enum class elem_shape | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
#include "mesh-base.h" | ||
|
||
namespace spt { | ||
|
||
template <typename Polytope> | ||
struct mesh<Polytope, elem_shape::simplex> | ||
{ | ||
using polytope_type = Polytope; | ||
using real_type = typename polytope_type::real_type; | ||
using vertex_type = spt::vertex<polytope_type::dim, real_type>; | ||
// ... | ||
using facet_type = spt::simplex<polytope_type::n - 1, polytope_type::dim, real_type>; | ||
using elem_type = spt::simplex<polytope_type::n, polytope_type::dim, real_type>; | ||
|
||
std::vector<vertex_type*> vertices; | ||
// ... | ||
std::vector<facet_type*> facets; | ||
std::vector<elem_type*> elements; | ||
}; | ||
|
||
template <typename Polytope> | ||
struct mesh_v<Polytope, elem_shape::simplex> | ||
{ | ||
using polytope_type = Polytope; | ||
using real_type = typename polytope_type::real_type; | ||
using vertex_type = spt::vertex<polytope_type::dim, real_type>; | ||
using elem_type = spt::simplex_v<polytope_type::n, polytope_type::dim, real_type>; | ||
|
||
std::vector<vertex_type*> vertices; | ||
std::vector<elem_type*> elements; | ||
}; | ||
|
||
} // namespace pmg |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.