My notes while reading the source code from threejs Editor app, as I've been curious about :
- the editor architecture
- the undo/redo system
- the camera control behaviour & code
- the object transform gizmos behaviours & code
I've been looking at the current master
source code, not a specific version : github commit b3ce68b4 on sept. 2019.
The source code is located in src/core/Raycaster.js
, and the doc is online.
A Raycaster
instance is constructed given a ray (origin point + direction vector) and a range on this ray (near, far distances), and offers the following API :
intersectObject( object, recursive, optionalTarget ) : Array
In an administrator PowerShell console
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private
or
Set-NetConnectionProfile -Name "Ethernet" -NetworkCategory Private
#include <Cocoa/Cocoa.h> | |
#import <Metal/Metal.h> | |
#import <MetalKit/MetalKit.h> | |
#import <simd/simd.h> | |
// BUG: on OSX 10.15.6, the App menu is not clickable at the first activation, but becomes so after switching to another app | |
//---------------------------------------------------------------------------- |
My GIT habits :
On Windows, through GIT bash
No UI, except occasional gitk --all&
to visually check branches and commits
Use git fetch
then git merge --ff-only origin/master
git pull
auto-merging feature that messes up the historyUse git add -p
to :
make a quick review of changes before commit