Creating a Model Truss Bridge with AI: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
We would like to get 3D printer design for a model[https://www.ncdot.gov/initiatives-policies/Transportation/bridges/historic-bridges/bridge-types/Pages/truss.aspx TrussBridge]
We would like to get 3D printer design for a model[https://www.ncdot.gov/initiatives-policies/Transportation/bridges/historic-bridges/bridge-types/Pages/truss.aspx TrussBridge]
[[File:trussbridge1.png|400px]][[File:trussbridge2.png|400px]][[File:trussbridge3.png|400px]]
[[File:trussbridge1.png|400px]][[File:trussbridge2.png|400px]][[File:trussbridge3.png|400px]]
<pdf>https://www.nps.gov/subjects/heritagedocumentation/upload/HAER-Truss-Poster_508.pdf</pdf>
 


We want a design combining a [https://en.wikipedia.org/wiki/Warren_truss Warren truss] pattern on the side with
We want a design combining a [https://en.wikipedia.org/wiki/Warren_truss Warren truss] pattern on the side with
Line 22: Line 22:
beamAt([10, 5, 0], [0, 0, 45], [40, 3, 3]);  // beam at position, rotated 45° on Z-axis
beamAt([10, 5, 0], [0, 0, 45], [40, 3, 3]);  // beam at position, rotated 45° on Z-axis
</source>
</source>
= References =
== HAER-Truss-Poster ==
<pdf>https://www.nps.gov/subjects/heritagedocumentation/upload/HAER-Truss-Poster_508.pdf</pdf>

Revision as of 12:13, 14 June 2025

We would like to get 3D printer design for a modelTrussBridge Trussbridge1.pngTrussbridge2.pngTrussbridge3.png


We want a design combining a Warren truss pattern on the side with an X Pattern on the top and bottom of the bridge.

We will use the nicescad webinterface to OpenScad for our design and Claude AI as the AI chat tool.

First we need a list of prompts that will lead to a proper scad module.

Steps

Step 1: Create beamAt Module

Prompt: Create a beamAt module that positions and rotates a cube beam at any location with any orientation. Give an example

module beamAt(position, rotation, dimensions) {
  translate(position) {
  rotate(rotation) {
  cube(dimensions);
}
beamAt([10, 5, 0], [0, 0, 45], [40, 3, 3]);  // beam at position, rotated 45° on Z-axis

References

HAER-Truss-Poster