Did I find the right examples for you? yes no

All Samples(71)  |  Call(67)  |  Derive(0)  |  Import(4)
An XYZ location given by 3 decimal values and printed with parens.

src/v/m/vmflib-HEAD/examples/koth_vmflib_example.py   vmflib(Download)
 
from vmflib import *
from vmflib.types import Vertex, Output, Origin
from vmflib.tools import Block
import vmflib.games.source as source
 
# Ground
ground = Block(Vertex(0, 0, -32), (2048, 2048, 64), 'nature/dirtground004')
m.world.children.append(ground)
 
# Skybox
skybox = [
    Block(Vertex(0, 0, 2048), (2048, 2048, 64)),     # Ceiling
    Block(Vertex(-1024, 0, 1024), (64, 2048, 2048)),    # Left wall
    Block(Vertex(1024, 0, 1024), (64, 2048, 2048)),     # Right wall

src/v/m/vmflib-HEAD/examples/outdoor.py   vmflib(Download)
"""
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block
from vmflib.brush import DispInfo
    row = []
    for j in range(17):
        row.append(Vertex(0, 0, 1))
    norms.append(row)
dists = []
 
# Floor
floor = Block(Vertex(0, 0, -480), (2048, 2048, 64), 'nature/dirtfloor003a')
floor.top().lightmapscale = 32
floor.top().children.append(d)  # Add disp map to the ground
 
# Ceiling
ceiling = Block(Vertex(0, 0, 512), (2048+128, 2048+128, 64))
skywalls = []
# Left upper wall
skywalls.append(Block(Vertex(-1024-64, 0, 128), (64, 2048+128, 768)))
# Right upper wall
skywalls.append(Block(Vertex(1024+64, 0, 128), (64, 2048+128, 768)))

src/v/m/vmflib-HEAD/examples/woodbox_block.py   vmflib(Download)
"""
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block
 
 
# Floor
walls.append(Block(Vertex(0, 0, -512), (1024, 1024, 64)))
 
# Ceiling
walls.append(Block(Vertex(0, 0, 512), (1024, 1024, 64)))
 
# Left wall
walls.append(Block(Vertex(-512, 0, 0), (64, 1024, 1024)))
 
# Right wall
walls.append(Block(Vertex(512, 0, 0), (64, 1024, 1024)))
 
# Forward wall

src/v/m/vmflib-HEAD/examples/maze.py   vmflib(Download)
"""
from vmflib import *
from vmflib.types import Vertex
from vmflib.tools import Block
import numpy
 
# Floor
floor = Block(Vertex(0, 0, -maze_block_size),
	          (maze_width, maze_height, maze_block_size),
	          'nature/dirtfloor003a')
 
# Ceiling
ceiling = Block(Vertex(0, 0, maze_block_size),
			x = (i * maze_block_size) - (maze_width / 2) + (maze_block_size / 2)
			y = (j * maze_block_size) - (maze_height / 2) + (maze_block_size / 2)
			blocks.append(Block(Vertex(x, y, 0), block_dims))
 
# Instantiate a new map

src/v/m/vmflib-HEAD/vmflib/tools.py   vmflib(Download)
 
        self.brush.children[0].plane = types.Plane(
            types.Vertex(x - a, y + b, z + c),
            types.Vertex(x + a, y + b, z + c),
            types.Vertex(x + a, y - b, z + c))
        self.brush.children[1].plane = types.Plane(
            types.Vertex(x - a, y - b, z - c),
            types.Vertex(x + a, y - b, z - c),

src/v/m/vmflib-0.1.1/vmflib/tools.py   vmflib(Download)
 
        self.brush.children[0].plane = types.Plane(
            types.Vertex(x - a, y + b, z + c),
            types.Vertex(x + a, y + b, z + c),
            types.Vertex(x + a, y - b, z + c))
        self.brush.children[1].plane = types.Plane(
            types.Vertex(x - a, y - b, z - c),
            types.Vertex(x + a, y - b, z - c),