Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepping for v2.0.8 #61

Merged
merged 47 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
79f1584
Fix bug in version update
ctlee Jul 31, 2020
2c34650
Update links
ctlee Aug 24, 2020
ac26c89
Update file formatting to use clang-format
ctlee Jan 12, 2021
ebcfd0b
Refactore cmake modules dir
ctlee Jan 13, 2021
08b7ba4
Simplifying travis config
ctlee Jan 27, 2021
a0cf586
Bump cmake min version and update python finding
ctlee Jan 27, 2021
a59ae5c
Download libs on travis
ctlee Jan 27, 2021
af45e8e
Print cmake version
ctlee Jan 27, 2021
b8f0276
Install python using choco
ctlee Jan 27, 2021
7cd1a71
Shallow clone
ctlee Jan 27, 2021
3b5bea8
Avoid using ninja on travis; Windows python3
ctlee Jan 27, 2021
7e7c7ef
Setup conda for macos python v control
ctlee Jan 27, 2021
59065e6
Fix typos
ctlee Jan 27, 2021
893d2f2
Add blender version injection
ctlee Jan 27, 2021
5b4bd91
Attempt to fix wildcard
ctlee Jan 27, 2021
80d2782
Fix typos
ctlee Jan 27, 2021
0d7bbee
Add blendgamer deployments for other OS
ctlee Jan 27, 2021
b0a3f15
Remove appveyor
ctlee Jan 27, 2021
c11d4fc
Fix indentation
ctlee Jan 27, 2021
1eec165
Add pypi release
ctlee Jan 27, 2021
850d221
Merge pull request #47 from ctlee/scratch
ctlee Jan 27, 2021
a1f8fc9
Faster travis make; Restrict deploy to tags
ctlee Jan 27, 2021
b99266b
Bump version to test deployment
ctlee Jan 28, 2021
903ba2e
Refactor for find Python3
ctlee Jan 28, 2021
96f835a
Bump Blender support version
ctlee Jan 28, 2021
b2d2bb1
Supporting output of surface mesh stacks to comsol (#48)
ctlee May 25, 2021
af5beda
Bump Eigen to 3.3.9
ctlee May 25, 2021
814ed65
Squash merge broke 2.0.7-alpha1... oops
ctlee May 25, 2021
9abac52
Bump Tetgen to 1.6
ctlee May 25, 2021
960bcaa
Update googletest configuration
ctlee May 25, 2021
72e0ad2
Add support for Blender 2.93
ctlee Jun 17, 2021
f1726b9
Add runtime error macro
ctlee Jun 18, 2021
3bf16c7
Resolve runtime error for zero area faces
ctlee Jun 18, 2021
ef8cbb3
Pretty function workaround on windows
ctlee Jun 18, 2021
83a9197
Skip normal smooth on boundaries
ctlee Jun 22, 2021
b90253e
Add tetrahedralize test
ctlee Jun 22, 2021
f08f160
Add check for tet hole
ctlee Jun 22, 2021
0034c8f
Merge pull request #49 from ctlee/update_deps
justinlaughlin Jul 15, 2021
e84749f
chore: Bump pybind11 to 2.7.1
ctlee Aug 17, 2021
842fce5
refactor(blendgamer): Mark comsol output as beta
ctlee Aug 17, 2021
e3ccc6d
Print errors to console when hole filling fails (#55)
ctlee Nov 13, 2023
56ebb81
Merge branch 'main' into development
ctlee Nov 13, 2023
5ef97d9
chore: Remove triangle
ctlee Nov 14, 2023
3696ba0
chore: Change min cmake version for tetgen build
ctlee Nov 15, 2023
aa81b4e
feat: Add support for region point definition
ctlee Nov 15, 2023
e763a2e
feat: Add export of mean curvature for dolfin
ctlee Nov 15, 2023
f684c67
Merge pull request #62 from ctlee/curvature_export
ctlee Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/scripts/blender_pyversion_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
import sys

bver_to_pyver = {
"2.79": '3.5',
# "2.79": '3.5',
"2.83": '3.7',
"2.93": '3.9'
"2.93": '3.9',
"3.3": "3.10",
"3.6": "3.10",
}

if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
blender: [2.79, 2.83, 2.93]
blender: [2.83, 2.93, 3.3, 3.6]
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions cmake/blenderexec.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ f = open('@CMAKE_CURRENT_BINARY_DIR@/found_blender_info', 'w')
f.write('{}\n'.format(str(bpy.app.version[0]) + '.' + str(bpy.app.version[1]) + '.' + str(bpy.app.version[2])))
f.write('{}\n'.format(bpy.utils.script_path_user()))
f.write('{}\n'.format('.'.join(str(v) for v in sys.version_info[0:3])));
f.write('{}\n'.format(bpy.app.binary_path_python))
f.write('{}\n'.format(sys.executable))
f.write('{}\n'.format(struct.calcsize('@P')))
f.close()
f.close()
14 changes: 10 additions & 4 deletions include/gamer/SurfaceMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#pragma once

#include <iostream>
#include <limits>
#include <memory>
#include <stdexcept>
#include <string>
Expand Down Expand Up @@ -52,6 +53,8 @@ struct SMGlobal {
bool useVolumeConstraint;
/// Flag that determines if the mesh represents a hole or not
bool ishole;
/// Region point
Eigen::Vector3d regionPoint;

/**
* @brief Default constructor
Expand All @@ -65,7 +68,10 @@ struct SMGlobal {
SMGlobal(int marker = -1, float volumeConstraint = -1,
bool useVolumeConstraint = false, bool ishole = false)
: marker(marker), volumeConstraint(volumeConstraint),
useVolumeConstraint(useVolumeConstraint), ishole(ishole) {}
useVolumeConstraint(useVolumeConstraint), ishole(ishole),
regionPoint(std::numeric_limits<double>::max(),
std::numeric_limits<double>::max(),
std::numeric_limits<double>::max()) {}
};

struct SMVertex : Vertex {
Expand Down Expand Up @@ -545,7 +551,7 @@ void selectFlipEdges(
// faces. "
// << "Returning..." << std::endl;
gamer_runtime_error("SurfaceMesh is not pseudomanifold. Found "
"an edge connected to more than 2 faces.");
"an edge connected to more than 2 faces.");
} else if (up.size() < 2) // Edge is a boundary
{
// std::cerr << "This edge participates in fewer than 2
Expand Down Expand Up @@ -1102,9 +1108,9 @@ std::vector<std::unique_ptr<SurfaceMesh>> splitSurfaces(SurfaceMesh &mesh);

/**
* @brief Cache face and vertex normals
*
*
* A zero vector normal will be stored instead of raising an error
*
*
* @param mesh Surface mesh of interest
*/
void cacheNormals(SurfaceMesh &mesh);
Expand Down
23 changes: 22 additions & 1 deletion include/gamer/TetMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct TMVertexProperties {
struct TMVertex : Vertex, TMVertexProperties {
TMVertex() : TMVertex(Vertex(), TMVertexProperties()) {}
template <typename... Args>
TMVertex(Args &&... args) : TMVertex(Vertex(std::forward<Args>(args)...)) {}
TMVertex(Args &&...args) : TMVertex(Vertex(std::forward<Args>(args)...)) {}
TMVertex(Vertex v) : TMVertex(v, TMVertexProperties(-1)) {}
TMVertex(Vertex v, TMVertexProperties p) : Vertex(v), TMVertexProperties(p) {}

Expand Down Expand Up @@ -323,6 +323,16 @@ makeTetMesh(const std::vector<SurfaceMesh const *> &surfmeshes,
*/
std::unique_ptr<SurfaceMesh> extractSurface(const TetMesh &mesh);

/**
* @brief Extracts the boundary surfaces of a tetrahedral mesh from
* boundary markers
*
* @param[in] mesh The mesh
*
* @return Bounding surface meshes
*/
std::unique_ptr<SurfaceMesh> extractSurfaceFromBoundary(const TetMesh &mesh);

/**
* @brief Laplacian smoothing of tetrahedral mesh
*
Expand Down Expand Up @@ -382,4 +392,15 @@ void writeTriangle(const std::string &filename, const TetMesh &mesh);
* @return Tetrahedral mesh
*/
std::unique_ptr<TetMesh> readDolfin(const std::string &filename);

/**
* @brief Compute curvatures and write them to dolfin file
*
* @param filename The filename
* @param mesh The mesh
* @param tetmesh Tetrahedral mesh
*/
void curvatureMDSBtoDolfin(const std::string &filename, const SurfaceMesh &mesh,
const TetMesh &tetmesh);

} // end namespace gamer
3 changes: 2 additions & 1 deletion include/gamer/gamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void throw_runtime_error(const char *function, const char *file, const int line,
T &&...ts) {
std::stringstream ss;
ss << "Error: ";
int dummy[] = {0, ((ss << std::forward<T>(ts)), 0)...};
// https://stackoverflow.com/questions/25680461/variadic-template-pack-expansion/25683817#25683817
int dummy[] = {0, ((ss << std::forward<T>(ts) << " "), 0)...};
static_cast<void>(dummy); // Avoid warning for unused variable
ss << " in function " << function << " at " << file << ":" << line;
throw std::runtime_error(ss.str());
Expand Down
2 changes: 1 addition & 1 deletion libraries/tetgen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(Tetgen VERSION 1.6.0)

Expand Down
62 changes: 0 additions & 62 deletions libraries/triangle/A.poly

This file was deleted.

99 changes: 0 additions & 99 deletions libraries/triangle/CMakeLists.txt

This file was deleted.

Loading
Loading