{"id":20210158,"url":"https://github.com/lancelet/capstan","last_synced_at":"2025-04-10T13:21:13.635Z","repository":{"id":45383750,"uuid":"301039515","full_name":"lancelet/capstan","owner":"lancelet","description":"NURBS curves and surfaces in Rust (EARLY WIP!)","archived":false,"fork":false,"pushed_at":"2023-02-23T19:08:22.000Z","size":39,"stargazers_count":22,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T12:04:40.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lancelet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-04T04:32:05.000Z","updated_at":"2024-12-30T06:10:14.000Z","dependencies_parsed_at":"2022-09-19T09:31:26.743Z","dependency_job_id":null,"html_url":"https://github.com/lancelet/capstan","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancelet%2Fcapstan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancelet%2Fcapstan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancelet%2Fcapstan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancelet%2Fcapstan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lancelet","download_url":"https://codeload.github.com/lancelet/capstan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842862,"owners_count":21005358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T05:46:36.132Z","updated_at":"2025-04-10T13:21:13.615Z","avatar_url":"https://github.com/lancelet.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capstan\n\n![GitHub Rust CI](https://github.com/lancelet/capstan/workflows/Rust/badge.svg)\n[![Codecov.io](https://codecov.io/gh/lancelet/capstan/branch/main/graph/badge.svg)](https://codecov.io/gh/lancelet/capstan)\n[![Crates.io](https://img.shields.io/crates/v/capstan.svg)](https://crates.io/crates/capstan)\n[![Docs.rs](https://docs.rs/capstan/badge.svg)](https://docs.rs/capstan)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nNURBS utilities in Rust.\n\n## NURBS Curve Evaluation\n\nCurrently, only NURBS curve evaluation is complete. The evaluation uses a\nnaive version of the de Boor algorithm. With this, it's possible to evaluate\nthe 3D coordinates of a NURBS curve at any parameter value.\n\nNURBS can represent conics with floating-point precision. This image shows a\ntesselated NURBS circle on the left and an SVG circle on the right:\n\n\u003cimg src=\"./diagrams/circle.svg\" width=\"600\" height=\"300\"/\u003e\n\nNURBS are a generalization of Bézier curves, so they can exactly represent any\norder of Bézier curve. The image below shows an SVG cubic Bézier with a loop on\nthe right and a tesselated NURBS representation on the left:\n\n\u003cimg src=\"./diagrams/cubic-bezier.svg\" width=\"600\" height=\"300\"/\u003e\n\nNURBS can represent multiple Bézier curve segments in a single curve. The\nexample below shows an outline of the Egyptian \"reed leaf\" hieroglyph\n(Gardiner sign M17). This curve is constructed from 2 line segments and 4\ncubic Bézier curves, all of which can be represented as a single closed\nNURBS curve:\n\n\u003cimg src=\"./diagrams/reed-leaf.svg\" width=\"300\" height=\"300\"/\u003e\n\n## NURBS Curve Representation\n\nThe library uses the \"Rhino\" form of NURBS curves, where there are two fewer\nknots than in \"traditional\" NURBS.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancelet%2Fcapstan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancelet%2Fcapstan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancelet%2Fcapstan/lists"}