TinyGismo.jl
Welcome to the documentation of TinyGismo.jl, a Julia interface to the G+Smo (Geometry + Simulation Modules) library.
Overview
TinyGismo.jl provides comprehensive tools for:
- Spline-based geometric modeling using B-splines and NURBS
- Isogeometric analysis with basis function evaluation and refinement
- Parametric curves, surfaces, and volumes for CAD and scientific computing
Key Features
- Univariate and tensor product B-spline bases
- NURBS (Non-Uniform Rational B-Spline) support with weights
- Knot vector manipulation and refinement
- Geometric evaluation, derivatives, Jacobians, and Hessians
- Factory functions for creating standard shapes
- File I/O for reading and writing geometric data
Quick Start
using TinyGismo# A knot vector defines the parametric domain and the continuity of the splinekv = KnotVector([0.0, 0.0, 0.0, 0.5, 1.0, 1.0, 1.0])# The basis fixes the spline space; the control points place it in physical spacebasis = BSplineBasis(kv)curve = BSpline(basis, [0.0 0.0 1.0 1.5 2.0 -0.5 3.0 1.0])# Evaluate the geometry at a parameterx = gsMatrix()eval!(curve, [0.5], x)toMatrix(x)2×1 Matrix{Float64}:
1.5
0.5Standard shapes come ready-made, and refining one leaves its geometry untouched while enlarging the underlying spline space:
rect = createBSplineRectangle(0.0, 0.0, 2.0, 1.0)uniformRefine!(rect)Int(coefsSize(rect)), toMatrix(coefs(rect))(16, [0.0 0.0; 0.5 0.0; … ; 1.5 1.0; 2.0 1.0])Documentation Structure
- Examples: task-oriented, runnable walkthroughs
- API Reference: detailed documentation of all types and functions