Skip to content

WhatsThePoint.jlPoint clouds for meshless PDE methods

Generate, optimize, and connect point clouds — from CAD surface to solver-ready in a few lines of Julia.

Discretized Stanford bunny point cloud with cutaway showing interior points

Quick Example

Load a surface mesh and inspect the boundary structure:

julia
using WhatsThePoint
using Unitful: m
mesh = import_mesh(joinpath(@__DIR__, "assets/bunny.stl"), m)
boundary = PointBoundary(mesh)
PointBoundary{Meshes.𝔼{3}, CoordRefSystems.Cartesian3D{CoordRefSystems.NoDatum, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(m,), 𝐋, nothing}}}}
├─69664 points
└─Surfaces
  └─surface1
julia
using GLMakie
visualize(boundary; markersize=0.15)

Generate volume points with discretize:

julia
spacing = ConstantSpacing(1m)
cloud = discretize(boundary, spacing; alg=Orthtree(mesh))
julia
visualize(cloud; markersize=0.15)

Installation

julia
using Pkg
Pkg.add("WhatsThePoint")