Skip to content
Open
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
56 changes: 30 additions & 26 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,43 @@ if(NOT TARGET Sofa.Framework)
endif()
sofa_find_package(Sofa.Component.Topology.Container.Constant REQUIRED)

set(SOFAIMPLICITFIELD_SRC "src/${PROJECT_NAME}")

set(HEADER_FILES
config.h.in
initSofaImplicitField.h
MarchingCube.h
${SOFAIMPLICITFIELD_SRC}/config.h.in
${SOFAIMPLICITFIELD_SRC}/initSofaImplicitField.h
${SOFAIMPLICITFIELD_SRC}/MarchingCube.h

# This is backward compatibility
deprecated/SphereSurface.h
deprecated/ImplicitSurfaceContainer.h # This is a backward compatibility file toward ScalarField
deprecated/InterpolatedImplicitSurface.h # This is a backward compatibility file toward DiscreteGridField
${SOFAIMPLICITFIELD_SRC}/deprecated/SphereSurface.h
${SOFAIMPLICITFIELD_SRC}/deprecated/ImplicitSurfaceContainer.h # This is a backward compatibility file toward ScalarField
${SOFAIMPLICITFIELD_SRC}/deprecated/InterpolatedImplicitSurface.h # This is a backward compatibility file toward DiscreteGridField

components/engine/FieldToSurfaceMesh.h
components/geometry/BottleField.h
components/geometry/DiscreteGridField.h
components/geometry/SphericalField.h
components/geometry/ScalarField.h
components/geometry/StarShapedField.h
components/mapping/ImplicitSurfaceMapping.h
components/mapping/ImplicitSurfaceMapping.inl
${SOFAIMPLICITFIELD_SRC}/components/engine/FieldToSurfaceMesh.h
${SOFAIMPLICITFIELD_SRC}/components/geometry/BottleField.h
${SOFAIMPLICITFIELD_SRC}/components/geometry/DiscreteGridField.h
${SOFAIMPLICITFIELD_SRC}/components/geometry/SphericalField.h
${SOFAIMPLICITFIELD_SRC}/components/geometry/ScalarField.h
${SOFAIMPLICITFIELD_SRC}/components/geometry/StarShapedField.h
${SOFAIMPLICITFIELD_SRC}/components/mapping/ImplicitSurfaceMapping.h
${SOFAIMPLICITFIELD_SRC}/components/mapping/ImplicitSurfaceMapping.inl
)

set(SOURCE_FILES
initSofaImplicitField.cpp
MarchingCube.cpp
${SOFAIMPLICITFIELD_SRC}/initSofaImplicitField.cpp
${SOFAIMPLICITFIELD_SRC}/MarchingCube.cpp

## This is a backward compatibility..
deprecated/SphereSurface.cpp
deprecated/InterpolatedImplicitSurface.cpp

components/engine/FieldToSurfaceMesh.cpp
components/geometry/BottleField.cpp
components/geometry/ScalarField.cpp
components/geometry/DiscreteGridField.cpp
components/geometry/SphericalField.cpp
components/geometry/StarShapedField.cpp
components/mapping/ImplicitSurfaceMapping.cpp
${SOFAIMPLICITFIELD_SRC}/deprecated/SphereSurface.cpp
${SOFAIMPLICITFIELD_SRC}/deprecated/InterpolatedImplicitSurface.cpp
${SOFAIMPLICITFIELD_SRC}/components/engine/FieldToSurfaceMesh.cpp
${SOFAIMPLICITFIELD_SRC}/components/geometry/BottleField.cpp
${SOFAIMPLICITFIELD_SRC}/components/geometry/ScalarField.cpp
${SOFAIMPLICITFIELD_SRC}/components/geometry/DiscreteGridField.cpp
${SOFAIMPLICITFIELD_SRC}/components/geometry/SphericalField.cpp
${SOFAIMPLICITFIELD_SRC}/components/geometry/StarShapedField.cpp
${SOFAIMPLICITFIELD_SRC}/components/mapping/ImplicitSurfaceMapping.cpp
)

set(EXTRA_FILES
Expand All @@ -65,5 +67,7 @@ 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 "${PROJECT_NAME}"
RELOCATABLE "plugins"
)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <sofa/core/ObjectFactory.h>
using sofa::core::RegisterObject ;

#include "BottleField.h"
#include <SofaImplicitField/components/geometry/BottleField.h>

namespace sofa::component::geometry::_BottleField_
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
******************************************************************************/
#pragma once

#include "ScalarField.h"
#include <SofaImplicitField/components/geometry/ScalarField.h>
#include <sofa/type/Mat.h>
namespace sofa::component::geometry
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <sofa/core/ObjectFactory.h>
using sofa::core::RegisterObject ;

#include "DiscreteGridField.h"
#include <SofaImplicitField/components/geometry/DiscreteGridField.h>


namespace sofa::component::geometry::_discretegrid_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@


#include <sofa/core/ObjectFactory.h>
#include "ScalarField.h"
#include <SofaImplicitField/components/geometry/ScalarField.h>

namespace sofa
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <sofa/core/ObjectFactory.h>
using sofa::core::RegisterObject ;

#include "SphericalField.h"
#include <SofaImplicitField/components/geometry/SphericalField.h>

namespace sofa::component::geometry::_sphericalfield_
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef SOFA_IMPLICIT_SPHERICALFIELD_H
#define SOFA_IMPLICIT_SPHERICALFIELD_H

#include "ScalarField.h"
#include <SofaImplicitField/components/geometry/ScalarField.h>

namespace sofa
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <sofa/core/ObjectFactory.h>
using sofa::core::RegisterObject ;

#include "StarShapedField.h"
#include <SofaImplicitField/components/geometry/StarShapedField.h>

namespace sofa::component::geometry::_StarShapedField_
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
******************************************************************************/
#pragma once

#include "ScalarField.h"
#include <SofaImplicitField/components/geometry/ScalarField.h>
#include <sofa/type/Mat.h>

namespace sofa::component::geometry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define SOFA_COMPONENT_MAPPING_IMPLICITSURFACEMAPPING_CPP
#include <SofaImplicitField/config.h>
#include <sofa/core/ObjectFactory.h>
#include "ImplicitSurfaceMapping.inl"
#include <SofaImplicitField/components/mapping/ImplicitSurfaceMapping.inl>

namespace sofaimplicitfield::mapping
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
******************************************************************************/
#pragma once

#include "ImplicitSurfaceMapping.h"
#include <SofaImplicitField/components/mapping/ImplicitSurfaceMapping.h>
#include <sofa/core/visual/VisualParams.h>
#include <sofa/helper/rmath.h>
#include <map>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading