Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [3d]

For challenges involving either three-dimensional graphics, three-dimensional geometry or spatial data structures in three dimensions (e.g. octrees).

Filter by
Sorted by
Tagged with
14 votes
12 answers
3k views

3 Dimensional Minesweeper

3-Dimensional Minesweeper I've been on a minesweeper kick for a while, but all the questions are for 2 dimensions (or that one in 1D). But 2D is 2 easy! Challenge Write the shortest code possible to ...
pacman256's user avatar
  • 5,375
5 votes
4 answers
585 views

3D Hide & Seek Word Puzzle

Challenge Create a 3D word puzzle where the cube's dimensions match the length of the input word. The uppercase word (A-Z) must be validly placed within the cube in one of the fixed orientations: ...
vengy's user avatar
  • 2,309
11 votes
4 answers
532 views

Generate the vertices of a geodesic sphere

As in this challenge, the task is to generate the vertices of a polyhedron. The polyhedron here is the one obtained by dividing a regular icosahedron's triangular faces into smaller triangles so that ...
Karl's user avatar
  • 871
5 votes
2 answers
916 views

How spherical is my ellipsoid?

Define the (unnormalised) Willmore energy of a surface as the integral of squared mean curvature over it: $$W=\int_SH^2\,dA$$ For surfaces topologically equivalent to a sphere \$W\ge4\pi\$, and \$W=4\...
Parcly Taxel's user avatar
  • 4,739
9 votes
5 answers
319 views

CGAC2022 Day 22: Present stack headache, Part 2

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Santa has a bunch of presents wrapped in cuboid boxes of various sizes. As his sled flies above a chimney, a stack ...
Bubbler's user avatar
  • 79.2k
10 votes
7 answers
503 views

CGAC2022 Day 21: Present stack headache

Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. challenge idea by emanresu A Santa has a bunch of presents wrapped in cuboid boxes of various sizes. As his sled ...
Bubbler's user avatar
  • 79.2k
21 votes
18 answers
5k views

Convince me Gabriel's Horn is possible

From Wikipedia, Gabriel's Horn is a particular geometric figure that has infinite surface area but finite volume. I discovered this definition in this Vsauce's video (starting at 0:22) where I took ...
ihavenoidea's user avatar
  • 1,219
39 votes
21 answers
8k views

I give you ascii-art, you make it pseudo-3d

Do you know the optical effect of a tridimensional hand painted whit horizontal lines? Examples This challenge consists of making something like that effect with ascii, and transforming one 2d input ...
ZeroCodeException's user avatar
22 votes
26 answers
3k views

Print a 3D shape

Write a program or a function to print the following cube (if you allow me to call it so) in different sizes: ...
anotherOne's user avatar
  • 1,091
13 votes
6 answers
851 views

Ellipsoid surface area

Related: Ellipse circumference Introduction An ellipsoid (Wikipedia / MathWorld) is a 3D object analogous to an ellipse on 2D. Its shape is defined by three principal semi-axes \$a,b,c\$: $$ \frac{x^2}...
Bubbler's user avatar
  • 79.2k
16 votes
7 answers
1k views

Counting painted sides of cubic shapes

Sandbox Many of us have seen math problems where a shape made of unit cubes is dipped in paint, and the answer is the number of painted sides. We'll generalize that problem in this challenge. Input A ...
Rushabh Mehta's user avatar
14 votes
4 answers
1k views

Reconstruct a 3d arrangement of cubes from two of its projections

Setup Take the following 4x4x4 cube along with a 2D view of 3 of its faces, with a common 1x1x1 cube highlighted: The arrows ...
RGS's user avatar
  • 14.2k
21 votes
2 answers
1k views

Golf Lathe Machine

You probably know what a Turing Machine is but do you know what is a Turning Machine (lathe)? Ok you already know.. and what about a Golf Turning Machine ?? Ok I tell you.. A Golf Turning Machine is ...
AZTECCO's user avatar
  • 11k
18 votes
2 answers
1k views

ASCII TURNED SHAPE

How can we depict a turned shape simply and nicely using ascii characters in 3D space? I suggest this method : Instead of a circle we use a square rotated by 45° for the cutting section so that we ...
AZTECCO's user avatar
  • 11k
15 votes
8 answers
990 views

Binary self-rotation

Given a binary 3D array, for each layer, cyclically rotate up each of its columns as many steps as indicated by the binary encoding of the columns of the layer above it, and then cyclically rotate ...
Adám's user avatar
  • 31.7k

15 30 50 per page
Morty Proxy This is a proxified and sanitized view of the page, visit original site.