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 React from 'react'; | |
import React3 from 'react-three-renderer'; | |
import THREE from 'three'; | |
import {Timber as TimberComponent} from '../../../../core/components/Timber'; | |
export default class LongitudinalCut010 extends React.Component { | |
vertices: array; | |
faces: array; |
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 * as React from 'react'; | |
import * as BABYLON from 'babylonjs'; | |
import * as React3 from 'react-three-renderer'; | |
import * as THREE from 'three'; | |
import TrackballControls from './engine3D/lib/TrackballControls'; | |
import OrbitControls from './engine3D/lib/OrbitControls'; | |
import EditorControls from './engine3D/lib/EditorControls'; | |
import { Engine3D } from './../core/engine3D/Engine3D'; | |
import ProjectStore from '../stores/ProjectStore'; | |
import Timber from './engine3D/components/Timber'; |
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
class Timber extends React.Component { | |
[..] | |
render() { | |
const {component} = this.props; | |
return ( | |
<mesh | |
position={new THREE.Vector3(component.position.x/100, component.position.y/100, component.position.z/100)} |
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 AltStore from 'alt'; | |
import Dispatcher from '../Dispatcher'; | |
import ProjectActions from '../actions/ProjectActions'; | |
import TransformationActions from '../actions/TransformationActions'; | |
import Project from '../core/Project'; | |
import Timber from '../core/components/Timber'; | |
import Panel from '../core/components/Panel'; |
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
/* 448 */ | |
/***/ function(module, exports, __webpack_require__) { | |
/* WEBPACK VAR INJECTION */(function(module) {/* REACT HOT LOADER */ if (true) { (function () { var ReactHotAPI = __webpack_require__(77), RootInstanceProvider = __webpack_require__(85), ReactMount = __webpack_require__(87), React = __webpack_require__(139); module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () { return RootInstanceProvider.getRootInstances(ReactMount); }, React); })(); } try { (function () { | |
"use strict"; | |
var __extends = (this && this.__extends) || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
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
[options] | |
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons | |
data_dir = /var/lib/odoo | |
auto_reload = True | |
; admin_passwd = admin | |
; csv_internal_sep = , | |
; db_maxconn = 64 | |
; db_name = False | |
; db_template = template1 | |
; dbfilter = .* |
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
/// <reference path="../../../../typings/babylonjs/babylon.d.ts" /> | |
/// <amd-dependency path="app/../lib/babylon" /> | |
declare var require:(moduleId:string) => any; | |
var BABYLON = require('lib/babylon'); | |
import Timber = require('app/object/Timber'); | |
class Timber3D extends BABYLON.Mesh { |
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
this.project.objects.forEach((object: AbstractObject, index) => { | |
if ('timber' == object.type) { | |
var timber: Timber = object; | |
var timber3D: Timber3D = new Timber3D(timber, this.scene); | |
} | |
}); |
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
gulp.task('compileVendorJS', function () { | |
return gulp.src($.mainBowerFiles({filter: "**/*.js"})) | |
.pipe($.filelog()) | |
.pipe($.concat('vendor.js')) | |
//.pipe($.uglify()) | |
.pipe(gulp.dest('./lib')) | |
.pipe($.notify({message: 'Vendor JS compiled!'})); | |
}); |
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
/// <amd-dependency path="lib/babylon" /> | |
declare var require:(moduleId:string) => any; | |
var BABYLON = require('lib/babylon'); | |
import Timber = require('app/object/Timber'); | |
class Timber3D extends BABYLON.Mesh { | |
/** | |
* 3D object instance |
NewerOlder