Skip to content

Commit

Permalink
adapted for hfe-accurate branch merge
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneponcioni committed Jan 8, 2024
1 parent b94df66 commit b9444d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pyhexspline/gmsh_mesh_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def sort_trab_coords(self, point_tags):
) # split every x, y, z coordinate

# sort the sub-arrays in counterclockwise order
point_tags_sorted0 = self.sort_ccw(coords_split[0]) # ! HERE
point_tags_sorted0 = self.sort_ccw(coords_split[0])
# for each sub-array point_tags, sort the points with point_tags_sorted0
point_tags_sorted = [
point_tags[point_tags_sorted0] for point_tags in point_tags
Expand Down
4 changes: 4 additions & 0 deletions src/pyhexspline/spline_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
import SimpleITK as sitk
from mpl_toolkits.axes_grid1 import make_axes_locatable
from scipy.interpolate import splev, splprep
import matplotlib


LOGGING_NAME = "MESHING"
# flake8: noqa: E203

matplotlib.use("TkAgg")


class OCC_volume:
def __init__(
Expand Down
14 changes: 8 additions & 6 deletions standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
Date: 09.2022 - Ongoing
"""

import os
import logging
from src.pyhexspline.spline_mesher import HexMesh
import hfe_input_transformer as transformer
import os

import coloredlogs
import numpy as np

import hfe_input_transformer as transformer
from src.pyhexspline.spline_mesher import HexMesh

# flake8: noqa: E501


Expand Down Expand Up @@ -51,9 +53,9 @@ def main():
"thickness_tol": 5e-1, # minimum cortical thickness tolerance: 3 * XCTII voxel size
"phases": 2, # 1: only external contour, 2: external and internal contour
"center_square_length_factor": 0.4, # size ratio of the refinement square: 0 < l_f < 1
"n_elms_longitudinal": 4, # number of elements in the longitudinal direction
"n_elms_transverse_trab": 12, # number of elements in the transverse direction for the trabecular compartment
"n_elms_transverse_cort": 3, # number of elements in the transverse direction for the cortical compartment
"n_elms_longitudinal": 3, # number of elements in the longitudinal direction
"n_elms_transverse_trab": 10, # number of elements in the transverse direction for the trabecular compartment
"n_elms_transverse_cort": 4, # number of elements in the transverse direction for the cortical compartment
"n_elms_radial": 10, # number of elements in the radial direction # ! Should be 10 if trab_refinement is True
"mesh_order": 1, # set order of the mesh (1: linear, 2: quadratic)
"ellipsoid_fitting": True, # True: perform ellipsoid fitting
Expand Down

0 comments on commit b9444d1

Please sign in to comment.