Skip to main content

GBS is header library for computing bspline curves and surfaces.

GBS is compatible with OpenCASCADE, curves and surfaces can be converted to OpenCASCADE's objects.

Example of point cloud approximation: Screencast

Example of points surface interpolation: Screencast

Example of curve-surface intersection: Screencast

Example of loft-surface creation: Screencast

Example of surface approximation of points: Screencast

Example of curve 2d variable offset: Screencast Screencast

Example of curve on surface: Screencast

Example of python code to interpolate points

    pts = [
        [0.,0.,0],
        [0.,0.,1],
        [1.,0.,0.5],
        [1.,1.,1]
    ]
    constraints = []
    for p in pts:
        constraints.append([p])

    degree = 2

    crv = gbs.interpolate_cn_3d_d(
        constraints,
        degree,
        gbs.KnotsCalcMode.CHORD_LENGTH
    )

GBS is packaged on conda-forge (recipe maintained in gbs-feedstock):

conda install -c conda-forge gbs

To build from source, use a conda environment (channels conda-forge + ssg-aero) with:

  • cmake >= 3.28, ninja
  • eigen >= 3.3.9, nlopt, libboost-devel, rapidjson, tbb-devel, libiges

The optional module render requires the additional package:

  • vtk >= 9.0

The python bindings requires the additional packages:

  • pybind11, numpy, pyvista

The optional module gbs-occt requires the additional package:

  • occt (7.x or 8.x)

The test suite needs:

  • doctest (C++ tests), pytest (Python tests)

Warning tests relative to performances evaluation should be run in release mode

As GBS base is a header library it doesn’t need compilation.

If one needs to compile the optional module gbs-occt, -DGBS_USE_OCCT_UTILS:BOOL=TRUE shall be added to cmake command. If one needs to compile the optional module render, -DGBS_USE_RENDER:BOOL=TRUE shall be added to cmake command. If one needs to compile the optional module python-bindings, -DGBS_USE_PYTHON_BINDINGS=TRUE shall be added to cmake command.

The test suite is built with -DGBS_BUILD_TESTS:BOOL=TRUE (see .github/workflows/ci.yml for the reference configuration).

Metadata

Release files for pygbs 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pygbs 0.5.1
File Interpreter ABI Platform Actions
pygbs-0.5.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pygbs-0.5.1-cp313-cp313-win_amd64.whl
pygbs-0.5.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pygbs-0.5.1-cp312-cp312-win_amd64.whl
pygbs-0.5.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pygbs-0.5.1-cp311-cp311-win_amd64.whl

Total release size: 7.6 MB

Release files / pygbs-0.5.1-cp313-cp313-win_amd64.whl

Download URL pygbs-0.5.1-cp313-cp313-win_amd64.whl
Size 2.5 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
18d6bbabec2d586c40eed9ffcf6a05bd59f2f9e18be24e960f62357168034962
BLAKE2b-256 checksum
How to use checksums
311edb1f95ef8b5e7acd36d5db216775cef5556542099675a41878d2cfa6fe25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pygbs-0.5.1-cp312-cp312-win_amd64.whl

Download URL pygbs-0.5.1-cp312-cp312-win_amd64.whl
Size 2.5 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
8b38dc82c00a8ad4b6250070ae6a0275a0737ccc8dd99d20c73ad045c8dabdec
BLAKE2b-256 checksum
How to use checksums
e39ed7805adb7cd5fc2679f6117786d7f5320729a80a4b14da73db661cf85fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / pygbs-0.5.1-cp311-cp311-win_amd64.whl

Download URL pygbs-0.5.1-cp311-cp311-win_amd64.whl
Size 2.5 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2d002ce1385a40d2137aa332e08b458dca1f6b78d8a78a2d5dbbdb4748ff1a00
BLAKE2b-256 checksum
How to use checksums
9103ea9092b8ae77c1635f25f6630d63896826f31fa062d4be607e8c3d9b1924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for pygbs 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page