Comments (1)
I forgot to mention an important logic regarding the connection design. The 'design' function we talked about yesterday is responsible for filtering the analysis input/output and passing them to the sub-functions. We need to adjust this function so it checks if the design function has an element or node. If it is an element then filter the input as I did for the member design, if it is a node then don't filter the analysis inputs/outputs just pass them along with the nodes and elements. Here is a rough example:
// in awatif-design/src/design.ts
designFunctions.forEach((designFunction) => {
designInputs.forEach((designInput) => {
if (designFunction.name in designInput) {
const element = designInput.element;
const node = designInput.node;
if (element) {
const analysisInput = analysisInputs.find(
(i) => (i as any).element == element
);
const analysisOutput = analysisOutputs["default"].find(
(i) => (i as any).element == element
);
if (analysisInput && analysisOutput) {
designOutputs.push(
designFunction(analysisInput, analysisOutput, designInput)
);
}
}
if (node) {
designOutputs.push(
designFunction(nodes, elements, analysisInputs, analysisOutputs, designInput)
);
}
}
});
});
from awatif.
Related Issues (20)
- should generate site statically
- should have text editor
- should use tailwind
- add app story
- Model Export
- Should document how to export models
- Should have an export button on the EditorBar
- Should have an export modal
- Should download the exported format
- Should setup Jest for testing
- Should convert Awatif model to DXF format HOT 1
- Should setup staging environment
- Should export Awatif model and results to JSON
- Should have an export link
- use number.toFix() instead of roundto5()
- Baisc dynamic example
- Time-history analysis investigation HOT 1
- Clean up unused variables HOT 1
- Extruded beam sections and selection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awatif.