Giter VIP home page Giter VIP logo

javafx3d's Introduction

JavaFx3D

利用3维数组定义3D模型并自动转化为MeshView对象

提供两个核心类

  1. Cube

Cube类用来快速对int[][][] matrix数组赋值,建立3维模型(int[i][j][k]=1表示(i,j,k)坐标位置为实体,int[i][j][k]=0表示(i,j,k)坐标位置为空)

new Cube(30, 30, 30).ones().cube();

new Cube(20,20,20).range(0,20,0,20,0,5).value(1)
                         .range(0,20,15,20,5,15).value(1)
                         .range(0,20,0,20,15,20).value(1)
                         .cube();

new Cube(30,30,30).ones()
                .circle(0,30,15,15,10, Cube.Axis.Z, Cube.Position.Outside)
                .circle(0,30,15,15,10, Cube.Axis.Y, Cube.Position.Outside)
                .cube();

new Cube(30,30,30)
            .range(0,10,0,10,0,10).value(1)
            .range(0,10,20,30,0,10).value(1)
            .range(20,30,0,10,0,10).value(1)
            .range(20,30,20,30,0,10).value(1)
            .range(10,20,10,20,10,20).value(1)
            .range(0,10,0,10,20,30).value(1)
            .range(0,10,20,30,20,30).value(1)
            .range(20,30,0,10,20,30).value(1)
            .range(20,30,20,30,20,30).value(1)
            .cube();

new Cube(30,30,30)
            .zeros()
            .elbowPipe(20,15,28,28,8, Cube.Axis.Z,Cube.Axis.X)
            .cube();

2. Three3DUtils

createMeshView方法将int[][][]转换为MeshView

public MeshView createMeshView(int[][][] matrix)

javafx3d's People

Contributors

vua avatar

Stargazers

Etern avatar  avatar CodeJason avatar  avatar 喻南豪 avatar  avatar

Watchers

James Cloos avatar  avatar

javafx3d's Issues

Xform

Where is the Xform class

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.