Grading, mixing, stochastic lattices, and transitions ===================================================== .. currentmodule:: pyvcad_metamaterials Material grading ---------------- .. autofunction:: skin_core_tpms .. autofunction:: per_strut_material .. autofunction:: distance_field Mixing structures ----------------- .. autofunction:: ramp .. autofunction:: idw_weight .. autofunction:: mix .. autofunction:: mix_many .. autofunction:: overlap .. autofunction:: zones Stochastic lattices ------------------- Delaunay and Voronoi lattices built from seed points inside a host. The graph builders make struts; the plate builders make walls. .. autofunction:: sample_points_in_host .. autoclass:: StochasticPointSet :members: .. autofunction:: stochastic_graph_lattice .. autofunction:: delaunay_graph_lattice .. autofunction:: voronoi_graph_lattice .. autofunction:: stochastic_plate_lattice .. autofunction:: delaunay_plate_lattice .. autofunction:: voronoi_plate_lattice .. autofunction:: random_seeds Voronoi ribs on a surface ------------------------- Seeds spread over a triangle surface own the parts of it closest to them; the boundaries between those cells become ribs or walls. .. autofunction:: surface_seeds .. autofunction:: surface_voronoi .. autofunction:: surface_voronoi_ribs .. autofunction:: surface_voronoi_plates Random-to-regular transitions ----------------------------- .. autodata:: SITE_KINDS :no-value: Regular point sets accepted by the transition helpers: ``sc``, ``bcc``, ``fcc``. .. autofunction:: voronoi_transition .. autofunction:: voronoi_tpms_transition .. autofunction:: voronoi_foam .. autofunction:: transition_seeds .. autoclass:: TransitionSeeds .. autofunction:: lattice_sites .. autofunction:: cell_map_sites .. autofunction:: voronoi_unit_cell .. autofunction:: matched_spacing Connectivity checks ------------------- .. autofunction:: check_connectivity .. autofunction:: require_connected .. autoclass:: ConnectivityReport :members: islands, largest_fraction