This file contains 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
#define _CRT_SECURE_NO_WARNINGS | |
#include "ufbx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
void print_indent(FILE *f, int indent) | |
{ | |
for (int i = 0; i < indent; i++) { |
This file has been truncated, but you can view the full file.
This file contains 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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
// -- User configuration |
This file has been truncated, but you can view the full file.
This file contains 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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
// -- User configuration |
This file has been truncated, but you can view the full file.
This file contains 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
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
// -- User configuration |
This file contains 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
static const uint32_t ufbxi_number_start_mask = | |
(((1u << 10) - 1) << ((uint32_t)'0' - 32u)) | | |
(1u << ((uint32_t)'-' - 32u)) | | |
(1u << ((uint32_t)'+' - 32u)) | | |
(1u << ((uint32_t)'.' - 32u)) ; | |
ufbx_static_assert(ufbxi_number_start_codepoint, | |
((uint32_t)'9' - (uint32_t)'0') == 9 && | |
(uint32_t)'0' >= 32u && (uint32_t)'0' < 64u && |
This file contains 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
/** \file mikktspace/mikktspace.c | |
* \ingroup mikktspace | |
*/ | |
/** | |
* Copyright (C) 2011 by Morten S. Mikkelsen | |
* | |
* This software is provided 'as-is', without any express or implied | |
* warranty. In no event will the authors be held liable for any damages | |
* arising from the use of this software. | |
* |
This file contains 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
$ misc/check_dataset.py --exe build/check_fbx --root /mnt/fbx-files --host-url https://ufbx-dataset.b-cdn.net | |
== 'Autodesk Telescope' by 'Roberto Ziche' (CC BY 4.0) == | |
source url: https://github.com/Autodesk/Aurora#sample-data | |
.json url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.json | |
-- github/autodesk/autodesk-telescope.ufbx.obj -- | |
.fbx url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.ufbx.obj |
This file contains 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
#define _CRT_SECURE_NO_WARNINGS | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#define STB_IMAGE_RESIZE_IMPLEMENTATION | |
#include "stb_image_resize.h" | |
#include <stdint.h> | |
#include <stdio.h> |
This file contains 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 torch | |
from torch import nn | |
import torch.nn.functional as NNF | |
from torch.utils.data import DataLoader, Dataset, ConcatDataset | |
from torchvision import datasets | |
from torchvision.transforms import ToTensor, PILToTensor, RandomResizedCrop | |
import torchvision.transforms as TVT | |
from torchvision.transforms.functional import to_pil_image, center_crop | |
from torchvision.io import read_image, ImageReadMode | |
import os |
This file contains 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 htm from "https://unpkg.com/htm?module" | |
// import { h, Fragment, render, createState, useState, useRef, useEffect } from "https://unpkg.com/kaiku" | |
import { h, Fragment, render, createState, useState, useRef, useEffect, immutable } from "./kaiku.min.js" | |
const html = htm.bind(h) | |
function setupFormsDefaults() { | |
return { | |
settings: { | |
enabled: true, |
NewerOlder