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 __TAK_SHAPEVIEWER_H__ | |
#define __TAK_SHAPEVIEWER_H__ | |
#include <FK/FK.h> | |
class TAK_ShapeViewer : public fk_ShapeViewer | |
{ | |
public: | |
TAK_ShapeViewer(int w = 300, int h = 300); | |
virtual ~TAK_ShapeViewer(void); |
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
fk_Edge *e = s->getNextE(NULL); | |
while(e != NULL) | |
{ | |
if(!s->existEdge(e)) | |
cout << "NG" << endl; | |
e = s->getNextE(e); | |
} |
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
#include <FK/FK.h> | |
int main() | |
{ | |
fk_ShapeViewer viewer(600, 660); | |
fk_Solid shape; | |
shape.makePrism(3, 10.0, 10.0, 20.0); | |
shape.uniteLoop(shape.getEData(18)); |
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
public class LineEdit : MonoBehaviour | |
{ | |
private Rect frame; | |
private string text; | |
static public LineEdit makeLineEdit(string name, Rect frame) | |
{ | |
GameObject go = new GameObject(name); | |
LineEdit le = go.AddComponent<LineEdit>(); |
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
using UnityEngine; | |
using System.Collections; | |
namespace TAK_CameraController | |
{ | |
enum MouseButtonDown | |
{ | |
MBD_LEFT = 0, | |
MBD_RIGHT, | |
MBD_MIDDLE, |
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
using UnityEngine; | |
using System.Collections; | |
// クラス名が被っているといけないので、namespaceで囲む | |
namespace TAK_CameraController | |
{ | |
// マウスのボタンをあらわす番号がわかりにくかったので名前を付けた | |
enum MouseButtonDown | |
{ | |
MBD_LEFT = 0, |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
namespace TAKL | |
{ | |
public class CreateOtherPrimitive : EditorWindow | |
{ | |
[MenuItem("GameObject/Create Other/Other Primitives/Half Cube")] | |
public static GameObject CreateHalfCube() |
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
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System.Collections; | |
using System.IO; | |
namespace TAKL |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
public class GearMaker : EditorWindow | |
{ | |
int toothNum = 0; | |
[MenuItem("GameObject/Gear")] | |
public static void makeGear() |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
[CustomEditor(typeof(Transform))] | |
public class TAK_Handle : Editor | |
{ | |
static bool viewFlag = true; | |
bool ctrlFlag = false; |
OlderNewer