Atelier des rouesLab FR
Objects/Documentation

contacts27.py

Shared conditionals and checks · contacts27.py

Download ↓
"""Irredundant rejection covers and active contacts around the four critical radii."""
import json
from fractions import Fraction as F
from itertools import combinations
from pathlib import Path
from rayon26 import CUBE,clip,constraints,coords,decide,extremes
from verifier26 import permitted,verify,vertices,BOX

TRIPLE=[[F(k,n) for k in w] for n,w in [(27,(9,5,7,6)),(21,(1,9,7,4)),(14,(1,3,2,8))]]

def interval(planes):
    vs,_=clip(planes)
    return [x[0] for x in extremes(vs)] if vs else None

def excludes(bounds):
    return bounds is None or bounds[0]>0 or bounds[1]<0

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.