Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ endif()
target_link_libraries(${PROJECT_NAME} PUBLIC Sofa.Core)
target_link_libraries(${PROJECT_NAME} PUBLIC CGAL::CGAL)

target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>")
target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>")
target_include_directories(${PROJECT_NAME} PUBLIC "$<INSTALL_INTERFACE:include>")

# Install rules for the library and the headers; CMake package configurations files
sofa_create_package_with_targets(
PACKAGE_NAME ${PROJECT_NAME}
PACKAGE_VERSION ${PROJECT_VERSION}
TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES
INCLUDE_SOURCE_DIR "src"
INCLUDE_INSTALL_DIR "MeshSkeletonizationPlugin"
INCLUDE_INSTALL_DIR "${PROJECT_NAME}"
RELOCATABLE "plugins"
)
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "SkeletonGraph.h"
#include <MeshSkeletonizationPlugin/SkeletonGraph/SkeletonGraph.h>


#include <algorithm>
#include <cmath>
Expand Down
5 changes: 3 additions & 2 deletions src/MeshSkeletonizationPlugin/SkeletonGraph/SkeletonGraph.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "SkeletonNode.h"
#include <MeshSkeletonizationPlugin/config.h>
#include <MeshSkeletonizationPlugin/SkeletonGraph/SkeletonNode.h>

#include <array>
#include <map>
Expand All @@ -15,7 +16,7 @@ namespace meshskeletonizationplugin
/// MeshSkeletonization/SkeletonizationLoader's Export_polylines: blocks of
/// "x y z" lines separated by a blank line) and stores it as a graph of
/// SkeletonNode, then turns it into a rooted parent/children tree.
class SkeletonGraph
class SOFA_MESHSKELETONIZATIONPLUGIN_API SkeletonGraph
{
public:
/// Parses the file, merging points that are within `mergeTolerance` of an
Expand Down
2 changes: 1 addition & 1 deletion src/MeshSkeletonizationPlugin/SkeletonGraph/SkeletonNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace meshskeletonizationplugin
/// A single node of a skeletonized structure (e.g. a vessel centerline point).
/// Deliberately has no SOFA/CGAL dependency so it can be reused, tested,
/// and serialized independently of the plugin's simulation types.
class SkeletonNode
class SOFA_MESHSKELETONIZATIONPLUGIN_API SkeletonNode
{
public:
SkeletonNode() = default;
Expand Down
Loading