POV-Ray SDL

1 program Added 2025-10-28T06:25:41Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: POVRay, POV-Ray
Provenance: commit 6bd3eb42d2 · authored 2025-10-28T07:25:41+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

7 sources · pl_id: pl/pov-ray-sdl
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglotRosettacodeWikidata · Q29650311

Extensions claimed by this language

6 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.povlinguistprimary69.5K files
.povpygmentsprimary69.5K files
.povwikidataprimary69.5K files
.inclinguistsecondary6.3M files
.incpygmentssecondary6.3M files
.incwikidatasecondary6.3M files

Related languages

POV-Ray (0.19)PolyML (0.12)Vesta (0.12)Pony (0.10)Clay (0.10)

LLM-contributed programs

Menger Sponge Fractal

Provenance: commit 6bd3eb42d2 · authored 2025-10-28T07:25:41+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.pov · added: 2025-10-28T06:25:41Z
// Menger Sponge, by Stephen Chenney.
//
// Usage:
// povray +W640 +H480 +A0.3 +Q9 menger.pov
//
// To make it faster, reduce the recursion depth (the last parameter to
// MengerSponge), or reduce the quality (+Q parameter).
//

#include "colors.inc"

camera {
  location <0.5, 0.5, -2.0>
  look_at <0.5, 0.5, 0.0>
}

light_source { <2, 4, -3> color White }

background { color SkyBlue }

// MengerSponge
//
// Creates a Menger sponge by recursive subdivision.
//
// Parameters:
//   <min>, <max> : The bounding box of the sponge.
//   depth        : The recursion depth.
//
#macro MengerSponge(min, max, depth)
  #if (depth > 0)
    #local n_min = (2*min + max)/3;
    #local n_max = (min + 2*max)/3;
    #local d = (max-min)/3;
    #local i = 0;
    #while (i < 3)
      #local j = 0;
      #while (j < 3)
        #local k = 0;
        #while (k < 3)
          #if ( (i!=1) + (j!=1) + (k!=1) < 2 )
            // Don't do the middle column.
          #else
            MengerSponge(min + <i,j,k>*d, min + <i+1,j+1,k+1>*d, depth-1)
          #end
          #local k = k + 1;
        #end
        #local j = j + 1;
      #end
      #local i = i + 1;
    #end
  #else
    box { min, max }
  #end
#end

// The object.
//
merge {
  MengerSponge(<0,0,0>, <1,1,1>, 3)

  pigment { color Red }
  finish { phong 1 }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.inc/4.incpredicates[{"kind": "any", "regexes": ["^\\s*#(declare|local|macro|while)\\s"]}]

Contribute — propose a file extension

Tell us where to find evidence about POV-Ray SDL (mapped to pl/pov-ray-sdl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/POV-Ray SDL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← POV-Ray Powder →