Making a person interface that visualizes an actual world construction, such because the thirty -meter telescope mirror, could seem a process that calls for a deep information of geometry, D3.js and SVG graphics. However with a big language mannequin (LLM) similar to Claude or Chatgpt, you need not know every thing prematurely.
This text paperwork a visit within the development of a posh and interactive person interface with out prior expertise in D3.js or UI growth generally. The work was carried out as a part of the development of a prototype for an operational person interface for the first mirror of the telescope, designed to point out the state in actual time of the mirror segments. It highlights how the LLMs assist him to “transfer on”, giving him a piece prototype even when he isn’t aware of the underlying know-how. Extra importantly, it reveals how the iterative utility, refining your step -by -step requests, leads not solely to the right code but additionally to a clearer understanding of what you are attempting to construct.
Objective
We needed to create a HTML -based visualization of the first thirty -meter telescope, composed of 492 hexagonal segments prepared symmetrically in a round sample.
We began with a excessive degree indicator that described the construction, however we quickly realized that to realize my aim, I must information the step-by-step.
Step 1: The preliminary discover
“I wish to create an HTML view of the honeycomb mirror of the thirty -meter telescope. Attempt to generate an IU primarily based on HTML and CSS for this mirror, which consists of 492 hexagonal segments organized in a round sample. Within the second row it have to be the identical as within the second final row, and so on.”
Claude gave him an opportunity, however the end result was not what he had in thoughts. The design was blocked and never completely symmetrical. It was then that I made a decision to undertake a step-by-step method.
Step 2: Draw a hexagon
“This isn’t what I need … Let’s do it step-by-step.”
“Let’s draw a hexagon with the vertical flat edge. The hexagon ought to have all the perimeters of the identical size.”
“Let’s use D3.js and draw SVG.”
“Let’s draw solely a hexagon with D3”.
Claude generated a clear D3 code to attract a single hexagon with the proper orientation and geometry. It labored and gave me confidence within the development blocks.
Lesson: Begin small. Affirm the work of the Basis earlier than climbing complexity.

Step 3: Add a second hexagon
“Properly … now we add a hexagon extra subsequent to this. He ought to share the vertical edge with the primary hexagon.”
Claude adjusted the coordinates, inserting the second hexagon adjoining to the primary aligning his vertical edges. The design logic started to emerge.

Step 4: Create the second row
“Now we add another row.
Hexagons within the second row share vertical edges with one another just like the entrance row.
The higher inclination edges of the hexagons within the second row ought to be shared with the decrease inclination edges of the hexagons within the entrance row.
The variety of hexagons within the second row have to be such that the primary row seems within the middle of the second row. “
The preliminary makes an attempt couldn’t correctly align the inclination edges.
“Wow … this doesn’t share the borders of inclination with the earlier row.”

However lastly, after clarifying the area and compensation logic, Claude did properly.

Lesson: Geometry -based designs usually require a number of iterations with a cautious visible inspection.
Step 5: Increasing to a symmetric construction
“Now we have to create a bigger construction with extra hexagons organized in additional rows in such a method that: the final construction appears to flow into just like the honeycomb.
Claude used a hoop -based design method to simulate round symmetry. However initially:
“This isn’t round, nevertheless it appears to be like extra like a hexagonal common imaginative and prescient …”
Then I advised:
“Attempt simply 6 hexagons within the first and final row.”
This variation improved symmetry and helped obtain a visually round design. The variety of hexagons per row elevated after which decreased, precisely as desired.
Step 6: Regulate the central opening
“That is higher, however we want a smaller opening within the middle. The black area within the middle is just too massive. It ought to be at most 1 or a couple of hexagons.”
By lowering the empty area and re -militiating the interior rings, we lastly obtained a properly -packaged round construction with a small central area, which coincides with the TMT design.
Lesson: Use particular area restrictions (similar to complete rely = 492) as a information for design parameters.
Step 7: Add numbering and data on instruments
“We wish to have a quantity in every hexagonal section. They have to be numbered sequentially. The primary within the entrance row have to be 1 and the final within the final row have to be 492. Once we present the data of the hexagonal section in Mouseover, we should always present the quantity too.”
Claude initially assigned numbers primarily based on the ring index, not in a row order.
“It’s producing numbers primarily based on the ring on the ring … however the numbering have to be primarily based on the row. Subsequently, we should in some way assign the rings to the row. For instance, the section variety of the ring 13 483 is in row 1 and have to be numbered 1, and so on. Are you able to counsel a method of mapping rings to rings to rings on this method?”
As soon as this mapping was applied, every thing match:
- A round design of 492 numbered segments
- A small central hole
- After instruments that present section metadata
- Visible symmetry of inner outer rings

Reflections
This expertise taught me a number of key classes:
- LLMS helps you progress on: Even with zero information of D3.js or SVG geometry, it might start to construct instantly. The coding rosted, and discovered by the method.
- The applying is iterative: My first warning was not unsuitable, it was merely not particular sufficient. When reviewing the exit at every step, he clarified what I actually needed and refined my questions accordingly.
- LLMS unlocks studying by development: Ultimately, not solely did I get a person interface. I obtained an comprehensible code base and a sensible level of entry into a brand new know-how. Constructing first and studying from him.
Conclusion
What started as a imprecise design thought grew to become an interactive, symmetrical and interactive visualization, of the thirty -meter telescope mirror, inbuilt collaboration with a LLM.
This expertise reaffirmed that the event promoted by the discover is not only about producing code: it’s about interested by design, clarifying the intention and growing its path for understanding.
When you’ve got ever needed to discover a brand new know-how, construct a person interface or handle a particular viewing of the area, don’t wait to study every thing first.
Begin constructing with a LLM. You’ll study alongside the best way.