This is a little experiment in using CAD software with a functional representation for solids. I used Mathematica to construct a giant polynomial, and wrote a script which converts arbitrary Mathematica expressions into Antimony's prefix notation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* The f-rep syntax accepts four distinct types of atoms.X,Y,and Z \ | |
are replaced by position in the world\[CloseCurlyQuote]s coordinate system at any \ | |
given evaluation point. *) | |
Antimony[x] := "X" | |
Antimony[y] := "Y" | |
Antimony[z] := "Z" | |
(* Table A.1:Unary F-rep functions (pg. 93) *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import { forceSimulation, forceLink, forceCenter, forceManyBody } from 'd3-force'; | |
class GraphNode extends React.Component { | |
render(){ | |
var node = this.props.node; |
This Gist was automatically created by Carbide, a free online programming environment.
This Gist was automatically created by Carbide, a free online programming environment.
This Gist was automatically created by Carbide, a free online programming environment.
This Gist was automatically created by Carbide, a free online programming environment.