{"id":16705405,"url":"https://github.com/stevengj/geometryprimitives.jl","last_synced_at":"2025-03-17T01:30:54.923Z","repository":{"id":61798046,"uuid":"72597305","full_name":"stevengj/GeometryPrimitives.jl","owner":"stevengj","description":"geometric primitives for piecewise functions on grids","archived":false,"fork":false,"pushed_at":"2024-06-28T22:47:32.000Z","size":190,"stargazers_count":18,"open_issues_count":4,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-24T09:48:32.990Z","etag":null,"topics":["geometry","julia","math"],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevengj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-02T02:40:57.000Z","updated_at":"2024-06-28T22:26:08.000Z","dependencies_parsed_at":"2023-02-13T01:25:17.895Z","dependency_job_id":"2e2c73c4-97f2-440b-a399-f1b286875162","html_url":"https://github.com/stevengj/GeometryPrimitives.jl","commit_stats":{"total_commits":176,"total_committers":4,"mean_commits":44.0,"dds":"0.11363636363636365","last_synced_commit":"3e3171d74bf634f7410f81ed8880f15395d53c49"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevengj%2FGeometryPrimitives.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevengj%2FGeometryPrimitives.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevengj%2FGeometryPrimitives.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevengj%2FGeometryPrimitives.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevengj","download_url":"https://codeload.github.com/stevengj/GeometryPrimitives.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"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":["geometry","julia","math"],"created_at":"2024-10-12T19:29:47.706Z","updated_at":"2025-03-17T01:30:54.539Z","avatar_url":"https://github.com/stevengj.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeometryPrimitives\n\n[![CI](https://github.com/stevengj/GeometryPrimitives.jl/workflows/CI/badge.svg)](https://github.com/stevengj/GeometryPrimitives.jl/actions)\n[![Codecov](http://codecov.io/github/stevengj/GeometryPrimitives.jl/coverage.svg?branch=master)](http://codecov.io/github/stevengj/GeometryPrimitives.jl?branch=master)\n\nThis package provides a set of geometric primitive types (balls, cuboids, cylinders, and\nso on) and operations on them designed to enable piecewise definition of functions,\nespecially for finite-difference and finite-element simulations, in the Julia language.\n\nFor example, suppose that you are discretizing a PDE like the Poisson equation ∇⋅c∇u = f,\nand you want to provide a simple user interface for the user to specify the function `c(x)`.\nIn many applications, `c` will be piecewise constant, and you want to be able to specify\n`c = 1` in one box, `c = 2` in some cylinders, etcetera.   The GeometryPrimitives package\nallows the user to provide a list of shapes with associated data (in this case, the value of\n`c`) to define such a `c(x)`.\n\nFurthermore, the application to discretized simulations imposes a couple of additional\nrequirements:\n\n* One needs to be able to evaluate `c(x)` a huge number of times (once for every point on a\ngrid).  So, we provide a fast O(log n) K-D tree data structure for rapid searching of shapes.\n\n* Often, one wants to compute the *average* of `c(x)` over a voxel, so we provide routines\nfor rapid *approximate* voxel averages.\n\n* Often, one needs not only the value `c(x)` but the normal vector to the nearest shape, so\nwe provide normal-vector computation.\n\nThis package was inspired by the geometry utilities in Steven G. Johnson's [Libctl]\n(http://ab-initio.mit.edu/wiki/index.php/Libctl) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevengj%2Fgeometryprimitives.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevengj%2Fgeometryprimitives.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevengj%2Fgeometryprimitives.jl/lists"}