Skip to content

Instantly share code, notes, and snippets.

#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.
#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.
#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.
#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
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 &&
/** \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.
*
$ 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
#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>
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
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,