Skip to content

Commit

Permalink
NEW-CHANGE
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanjiajy committed Jul 27, 2023
1 parent 130c1e2 commit db50cd7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 47 deletions.
1 change: 0 additions & 1 deletion modules/opencascade/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ add_library(sphinxsys_opencascade
opencascade/surface_shape.h
opencascade/vector.cpp
opencascade/vector.h
opencascade/opencascade.h
)
target_include_directories(sphinxsys_opencascade PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/opencascade>)
target_link_libraries(sphinxsys_opencascade PUBLIC sphinxsys_3d)
Expand Down
44 changes: 0 additions & 44 deletions modules/opencascade/opencascade/opencascade.h

This file was deleted.

5 changes: 5 additions & 0 deletions modules/opencascade/opencascade/relax_dynamics_surface.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#include "level_set_shape.h"
#include "surface_shape.h"
#include "relax_dynamics_surface.h"

#include <opencascade/GeomAPI_ProjectPointOnSurf.hxx>
#include <opencascade/gp_Pnt.hxx>

//========================================================================================================//
namespace SPH
{
Expand Down
7 changes: 7 additions & 0 deletions modules/opencascade/opencascade/surface_shape.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include "surface_shape.h"

#include <opencascade/STEPCAFControl_Reader.hxx>
#include <opencascade/TopExp_Explorer.hxx>
#include <opencascade/TopoDS.hxx>
#include <opencascade/BRep_Builder.hxx>
#include <opencascade/GeomAPI_ProjectPointOnSurf.hxx>
#include <opencascade/gp_Pnt.hxx>

namespace SPH
{
//=================================================================================================//
Expand Down
4 changes: 3 additions & 1 deletion modules/opencascade/opencascade/surface_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

#include "sphinxsys.h"
#include "vector.h"
#include"opencascade.h"

#include <opencascade/Standard_TypeDef.hxx>
#include <opencascade/Geom_Surface.hxx>

#include <iostream>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion modules/opencascade/opencascade/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define VECTOR_H

#include "base_data_type.h"
#include"opencascade.h"
#include <opencascade/gp_Pnt.hxx>

namespace SPH
{
Expand Down

0 comments on commit db50cd7

Please sign in to comment.