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-sdlExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.pov | linguist | primary | 69.5K files |
.pov | pygments | primary | 69.5K files |
.pov | wikidata | primary | 69.5K files |
.inc | linguist | secondary | 6.3M files |
.inc | pygments | secondary | 6.3M files |
.inc | wikidata | secondary | 6.3M files |
Related languages
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
// 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.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.inc/4 | .inc | predicates | [{"kind": "any", "regexes": ["^\\s*#(declare|local|macro|while)\\s"]}] |