# 使用 Homebrew, dnf, MacPorts, Nix, pacman, zypper, apt 安装 gts

查看 gts 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gts
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gts
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gts
```

  证据: MacPorts ports tree: math/gts/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install gts
```

  证据: Fedora Rawhide package metadata: gts from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gts
```

  证据: nixpkgs package indexes: pkgs/by-name/gt/gts/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gts
```

  证据: Arch Linux sync databases: gts from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gts
```

  证据: openSUSE Tumbleweed package metadata: gts from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install libgts-0.7-5t64
```

  证据: Debian stable package indexes: libgts-0.7-5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:gts
- **软件包管理器:** Homebrew
- **版本:** 0.7.6
- **来源摘要:** GNU triangulated surface library
- **主页:** <https://gts.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- delaunay (别名)
- gts-config (别名)
- gts2dxf (别名)
- gts2oogl (别名)
- gts2stl (别名)
- gtscheck (别名)
- gtscompare (别名)
- gtstemplate (别名)
- happrox (别名)
- stl2gts (别名)
- transform (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.6
## 项目历史与用法

GTS, the GNU Triangulated Surface Library, is a C library for working with three-dimensional surfaces represented as interconnected triangles. Its package-manager significance comes from a practical mix of computational geometry algorithms, mesh file converters, and Unix-style command-line tools such as `stl2gts`, `gts2stl`, `delaunay`, `gtscheck`, and `happrox`.

### 项目历史

The GTS web site describes the project as free software under the LGPL and as a C library using an object-oriented design inspired by GTK+. Its initial goal was to give scientists a simple and efficient library for 3D computational surface meshes.

Early public news on the project site in 2000 announced a web site update, examples, and version 0.3.0. The 0.4.0 release in January 2001 reorganized the object hierarchy around points, vertices, segments, edges, triangles, faces, and surfaces; it also rewrote Delaunay triangulation and improved boolean operations and surface coarsening.

The 0.5.1, 0.6.0, and 0.7.x series expanded GTS from a geometry library into a toolkit with converters, validation tools, boolean operations, isosurface extraction, refinement, coarsening, graph operations, and progressive-surface support. Version-control history moved from CVS to darcs in the 0.7.4 cycle, and the site links the darcs repository as the development source.

### 采用历史

GTS was adopted by scientific and graphics projects that needed robust triangulated-surface operations without building a geometry kernel from scratch. The official projects page lists users including MyFon, Mesh Viewer, Gerris Flow Solver, Divipro, Chips, K-3D, and TriAero.

The library also became a durable distribution package: the input metadata records packaging across Homebrew, Debian, Ubuntu, Fedora-family, MacPorts, Nix, Arch, and openSUSE ecosystems. Its command-line converters and `gts-config` helper made it useful both as a library dependency and as a standalone mesh utility package.

### 使用方式

Typical GTS usage is split between C programs linking against the library and command-line workflows around mesh conversion and checking. The reference manual covers data structures such as heaps, vectors, object classes, point/vertex/edge/face/surface types, kd-trees, bounding-box trees, boolean operations, simplification, refinement, isosurfaces, Delaunay triangulation, differential geometry operators, and graph partitioning.

Package users encounter GTS through executable tools that convert STL, DXF, and OOGL-like formats, generate Delaunay triangulations, check surface consistency, approximate terrain models, and transform meshes. The installation docs describe a traditional autotools build and a dependency on GLib.

### 为什么软件包爱好者会关心

GTS is exactly the kind of library that package maintainers keep around because it is small, old, useful, and embedded in other scientific software. It bridges desktop-era GLib conventions, robust computational geometry, and Unix filters for mesh data, so even users who never write against its C API may depend on it through CAD, visualization, or simulation packages.

For Homebrew-style package culture, GTS is also notable because it ships many tiny executables from one library formula. That makes it useful for quick mesh conversions and for testing whether old scientific build systems can still find a `gts-config` or pkg-config path.

### 时间线

- 2000-02-29: Project site announces examples and a bibliography section.
- 2000-07-24: Version 0.3.0 announced with isosurface computation and memoryless simplification.
- 2001-01-31: Version 0.4.0 reorganizes the object hierarchy and rewrites Delaunay triangulation.
- 2001-11-12: Version 0.5.1 adds `gts-config`, shared/static library builds, graph operations, and out-of-core simplification.
- 2002-06-18: Version 0.6.0 introduces GtsFile error reporting and `gtscheck`.
- 2002-11-08: Version 0.7.0 rewrites boolean operations with Simulation of Simplicity techniques and adds `stl2gts`.
- 2005-10-17: Version 0.7.4 switches the development tree to darcs.
- 2006-03-29: Version 0.7.6 documents Debian snapshot packaging and locale handling fixes.

### Related projects

- The official site links GTS to GLib and GTK+ design conventions, Jonathan Shewchuk's robust predicates, pygts Python bindings, Gerris Flow Solver, K-3D, TriAero, and other mesh or simulation tools. Its command-line tools also make it adjacent to STL processing, Delaunay triangulation utilities, CAD/CAM packages, and scientific visualization stacks.

### 来源

- <https://gerris.dalembert.upmc.fr/darcs/gts-stable>
- <https://gts.sourceforge.net/>
- <https://gts.sourceforge.net/ChangeLog.html>
- <https://gts.sourceforge.net/install.html>
- <https://gts.sourceforge.net/projects.html>
- <https://gts.sourceforge.net/reference/book1.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - libgts-0.7-5t64 - 0.7.6+darcs121130-5.2+b1: normalized package name match | Debian stable package indexes: libgts-0.7-5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to deal with 3D computational surface meshes | http://gts.sourceforge.net/
- Debian apt - libgts-bin - 0.7.6+darcs121130-5.2+b1: normalized package name match | Debian stable package indexes: libgts-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility binaries for libgts | http://gts.sourceforge.net/
- Debian apt - libgts-dev - 0.7.6+darcs121130-5.2+b1: normalized package name match | Debian stable package indexes: libgts-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libgts | http://gts.sourceforge.net/
- Nix - gts: normalized package name match | nixpkgs package indexes: pkgs/by-name/gt/gts/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libgts-0.7-5t64 - 0.7.6+darcs121130-5.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgts-0.7-5t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to deal with 3D computational surface meshes | http://gts.sourceforge.net/
- Ubuntu apt - libgts-bin - 0.7.6+darcs121130-5.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgts-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility binaries for libgts | http://gts.sourceforge.net/
- Ubuntu apt - libgts-dev - 0.7.6+darcs121130-5.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgts-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for libgts | http://gts.sourceforge.net/
- dnf - gts - 0.7.6-53.20121130.fc45: normalized package name match | Fedora Rawhide package metadata: gts from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GNU Triangulated Surface Library | http://gts.sourceforge.net/index.html
- dnf - gts-devel - 0.7.6-53.20121130.fc45: normalized package name match | Fedora Rawhide package metadata: gts-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for gts | http://gts.sourceforge.net/index.html
- pacman - gts - 0.7.6.121130-5: normalized package name match | Arch Linux sync databases: gts from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Provides useful functions to deal with 3D surfaces meshed with interconnected triangles | http://gts.sourceforge.net/
- zypper - gts - 0.7.6_p20121130-4.43: normalized package name match | openSUSE Tumbleweed package metadata: gts from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNU Triangulated Surface Library (GTS) | http://gts.sourceforge.net/
- zypper - gts-devel - 0.7.6_p20121130-4.43: normalized package name match | openSUSE Tumbleweed package metadata: gts-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files and documentation for GTS | http://gts.sourceforge.net/
- zypper - libgts-0_7-5 - 0.7.6_p20121130-4.43: normalized package name match | openSUSE Tumbleweed package metadata: libgts-0_7-5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GTS Runtime Library | http://gts.sourceforge.net/
- MacPorts - gts: normalized package name match | MacPorts ports tree: math/gts/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [gts](https://pkg.so/zh-hans/pkg/npm/gts/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/gts.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gts.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
