This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>3D Binary Point Cloud Viewer</title> | |
<style> | |
body { | |
margin: 0; | |
overflow: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>B2Ply - Bytes To Points</title> | |
<style> | |
body { | |
margin: 0; | |
} | |
canvas { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>B2P - Bytes To Points</title> | |
<style> | |
body { | |
margin: 0; | |
} | |
canvas { | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rect { | |
constructor(left, top, right, bottom) { | |
this.left = left; | |
this.top = top; | |
this.right = right; | |
this.bottom = bottom; | |
} | |
width() { return this.right - this.left; } | |
height() { return this.bottom - this.top; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io, struct, argparse | |
class Chunk: | |
def __init__(self, id): | |
self.id = id | |
self.children = [] | |
def process_chunk( input, parent_chunk, remaining_data, depth = 0 ): | |
if None != parent_chunk.id and not parent_chunk.id in [ 'MULT', 'WRAP', 'TALK', 'TLKB', 'LECF', 'LFLF', 'SONG', 'NEST', 'SOUN', 'DIGI', 'AKOS', 'AWIZ' ]: | |
input.seek( input.tell() + remaining_data ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data type ranges and normalization functions | |
const DATA_RANGES = { | |
'int8': [-128, 127], | |
'uint8': [0, 255], | |
'int16': [-32768, 32767], | |
'uint16': [0, 65535], | |
'int32': [-2147483648, 2147483647], | |
'uint32': [0, 4294967295], | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io, struct, argparse | |
class Chunk: | |
def __init__(self, id): | |
self.id = id | |
self.children = [] | |
def process_chunk( input, size_encoding, parent_chunk, remaining_data, depth = 0 ): | |
if None != parent_chunk.id and not parent_chunk.id in [ 'aBPT', 'aLII', 'aFRM', 'aLYR', 'aVEL', 'nPAL', 'nAMS', 'aANM', 'nFMS', 'nVLS', 'nLIS', 'nLRS' ]: | |
input.seek( input.tell() + remaining_data ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rect: | |
def __init__(self, left, top, right, bottom): | |
self.left = left | |
self.top = top | |
self.right = right | |
self.bottom = bottom | |
def width(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
#if UNITY_EDITOR | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
public class Test { | |
static int[][] MAP_A = { | |
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,1,1,0}, |
NewerOlder