feature-120-cell-layers #7
							
								
								
									
										21
									
								
								polytopes.js
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								polytopes.js
									
									
									
									
									
								
							| @ -160,27 +160,6 @@ export const tesseract = () => { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| const tesseract_some_inscribed = (ps) => { |  | ||||||
| 	const t = tesseract(); |  | ||||||
| 
 |  | ||||||
| 	const i_links = [];  |  | ||||||
| 
 |  | ||||||
| 	for( const p of ps ) { |  | ||||||
| 		const nodes16 = t.nodes.filter((n) => n.label === p); |  | ||||||
| 		const links16 = auto_detect_edges(nodes16, 6); |  | ||||||
| 		links16.map((l) => l.label = p); |  | ||||||
| 		i_links.push(...links16); |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	t.links.push(...i_links); |  | ||||||
| 	return t; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| export const tesseract_inscribed = () => tesseract_some_inscribed([1]); |  | ||||||
| export const tesseract_all_inscribed = () => tesseract_some_inscribed([1,2]); |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| const CELL24_INDEXING = { | const CELL24_INDEXING = { | ||||||
| 	x: { y: 1, z: 3, w: 2 }, | 	x: { y: 1, z: 3, w: 2 }, | ||||||
| 	y: { z: 2, w: 3 }, | 	y: { z: 2, w: 3 }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user