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
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ repos:
rev: v2.4.2
hooks:
- id: codespell
args:
- --ignore-words-list=LOD # lib/octree/octreelib.dox:85
# TODO: Remove these exclusions, they are just not fixed completely yet, nor ignored
exclude_types:
- c
Expand Down
1 change: 1 addition & 0 deletions GRASSConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ set(_GRASS_supported_components
manage
neta
nviz
octree
ogsf
parson
pngdriver
Expand Down
1 change: 1 addition & 0 deletions grasslib.dox
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ href="https://grass.osgeo.org">https://grass.osgeo.org</a>

- btree: \ref btree.h
- btree2: \ref btree2
- octree: \ref octree (3D point octree library)
- rtree: \ref rtree.h (R search tree library)

\subsection dblibs Database Management Libraries
Expand Down
2 changes: 2 additions & 0 deletions include/Make/Grass.make
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ libs = \
LRS:lrs \
MANAGE:manage \
NVIZ:nviz \
OCTREE:octree \
OGSF:ogsf \
OPTRI:optri \
PARSON:parson \
Expand Down Expand Up @@ -208,6 +209,7 @@ LIDARDEPS = $(VECTORLIB) $(DBMILIB) $(GMATHLIB) $(RASTERLIB) $(SEGMENTLIB
LRSDEPS = $(DBMILIB) $(GISLIB)
MANAGEDEPS = $(VECTORLIB) $(GISLIB)
NVIZDEPS = $(OGSFLIB) $(GISLIB) $(OPENGLLIB)
OCTREEDEPS = $(GISLIB) $(MATHLIB)
OGSFDEPS = $(BITMAPLIB) $(RASTER3DLIB) $(VECTORLIB) $(DBMILIB) $(RASTERLIB) $(GISLIB) $(TIFFLIBPATH) $(TIFFLIB) $(OPENGLLIB) $(OPENGLULIB) $(MATHLIB)
PNGDRIVERDEPS = $(DRIVERLIB) $(GISLIB) $(PNGLIB) $(MATHLIB)
PSDRIVERDEPS = $(DRIVERLIB) $(GISLIB) $(MATHLIB)
Expand Down
4 changes: 4 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ build_library_in_subdir(btree)

build_library_in_subdir(btree2 HEADERS "kdtree.h" DEPENDS grass_gis)

build_library_in_subdir(octree HEADERS "octree.h" DEPENDS grass_gis ${LIBM})

build_program_in_subdir(octree/test NAME test.octree.lib DEPENDS grass_gis grass_octree ${LIBM})

build_library_in_subdir(display DEFS ${_grass_display_DEFS} DEPENDS
${_grass_display_DEPENDS})

Expand Down
1 change: 1 addition & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SUBDIRS = \
bitmap \
btree \
btree2 \
octree \
display \
db \
fonts \
Expand Down
19 changes: 19 additions & 0 deletions lib/octree/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
MODULE_TOPDIR = ../..

include $(MODULE_TOPDIR)/include/Make/Vars.make

LIB = OCTREE

include $(MODULE_TOPDIR)/include/Make/Lib.make

HEADERS := $(ARCH_INCDIR)/octree.h

default: headers
$(MAKE) lib

headers: $(HEADERS)

$(ARCH_INCDIR)/octree.h: octree.h
$(INSTALL_DATA) $< $@

DOXNAME = octree
Loading
Loading