CN105046033A - Three dimensional labyrinth designing and entity modeling method - Google Patents

Three dimensional labyrinth designing and entity modeling method Download PDF

Info

Publication number
CN105046033A
CN105046033A CN201510576424.7A CN201510576424A CN105046033A CN 105046033 A CN105046033 A CN 105046033A CN 201510576424 A CN201510576424 A CN 201510576424A CN 105046033 A CN105046033 A CN 105046033A
Authority
CN
China
Prior art keywords
labyrinth
dimensional
plane
modeling
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510576424.7A
Other languages
Chinese (zh)
Inventor
张朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei A Basai Information Science And Technology Ltd
Original Assignee
Hefei A Basai Information Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei A Basai Information Science And Technology Ltd filed Critical Hefei A Basai Information Science And Technology Ltd
Priority to CN201510576424.7A priority Critical patent/CN105046033A/en
Publication of CN105046033A publication Critical patent/CN105046033A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a three dimensional labyrinth designing and entity modeling method. The method comprises the following steps of generating a plane labyrinth, inputting labyrinth size into an interaction interface by a user, generating a plane labyrinth suitable for a design of a three dimensional labyrinth via an interaction system, building a model for the three dimensional labyrinth, building a three dimensional labyrinth model via an OpenSCAD modeling software, and generating the three dimensional model via Boolean calculation. Size of the labyrinth has to be set up by the user and a random plane labyrinth can be automatically generated via the user interaction interface, so labyrinth variety and complexity can be guaranteed; the three dimensional labyrinth is further generated by the use of the generated plane labyrinth; the user only has to choose a generated three dimensional labyrinth type and the labyrinth can be generated by the user interaction interface; the entity model of the three dimensional labyrinth is introduced; and the method is suitable for all three dimensional printing ways in the prior art.

Description

A kind of method of three-dimensional labyrinth design and solid modelling
Technical field
The present invention relates to 3D modeling technique field, specifically a kind of method of three-dimensional labyrinth design and solid modelling.
Background technology
3D Digital Media is a kind of senior Digital Media form, can portray real world more exactly.2D figure is liberated from two dimensional surface, enters three-dimensional world, in virtual three dimensions, constructed the model with three-dimensional data by 3 d modeling software, 3D modeling that Here it is.3D modeling is the Main Means obtaining three-dimensional model.
3D modeling software is mainly divided into interactive mode and non-interactive type, and common Interactive Modeling software is as 3DSMax, the Maya under autodesk, inc. of the U.S..OpenSCAD is a noninteractive modeling software, is usually used in building entity cad model.It requires low to allocation of computer, and installation file is little, but function is but very powerful.Compared with other Interactive Modeling softwares, OpenSCAD has following distinguishing feature:
(1) script is used to describe 3D model.OpenSCAD is description object in script file, and presents the 3D model in script file.Carry out 3D modeling by 3-D Moulding Design language, 3D model can be described more exactly.
(2) simple to operate, easy to use.OpenSCAD is a Small Scale Software, installs simple, easy to operate.Meanwhile, the script that OpenSCAD uses is simplified very much, and introduction is simple.
(3) order line process is supported.OpenSCAD not only can be used as a graphic user interface, and all right processing command is capable.OpenSCAD can be used for the exploitation of 3D modeling software by this feature, writes the graphical user interface application program relevant with 3D model.
Labyrinth is the classic look in intelligence development type toy, is also a Main way of intelligence development type toy research and development.Since coming out in labyrinth, all keep classical toy style, most of labyrinth morphologically belongs to half solid shape, namely based on the form of planar design always.The labyrinth of planar design not only limit the design and development in labyrinth, also makes the moulding of maze toy similar, hinders the development of labyrinth type toy.
Summary of the invention
The object of the present invention is to provide a kind of method of three-dimensional labyrinth design and solid modelling.
Object of the present invention can be achieved through the following technical solutions:
The design of three-dimensional labyrinth and a method for solid modelling, is characterized in that, comprise the following steps:
(1) generation in plane labyrinth: user is in the size in interactive interface input labyrinth, and interactive system generates and is applicable to the plane labyrinth being designed to three-dimensional labyrinth;
(2) three-dimensional labyrinth modeling: utilize OpenSCAD modeling software to set up the model in three-dimensional labyrinth, then generate target three-dimensional by Boolean calculation.
The generation in step of the present invention (1) plane labyrinth comprises the following steps:
Step 11: the labyrinth size obtaining user's input: the line number in labyrinth and columns, the line number in labyrinth is odd number, and the columns in labyrinth is even number;
Step 12: interactive system generates plane labyrinth: interactive system provides two kinds of modes to generate plane labyrinth: one is system stochastic generation plane labyrinth, one generates plane labyrinth by user interactive, and there is the path of connection the left and right sides that the plane labyrinth of generation must meet labyrinth.
Step of the present invention (2) three-dimensional labyrinth modeling comprises the following steps:
Step 13: the pattern selecting three-dimensional labyrinth, selects based on cylinder moulding or based on ball moulding;
Step 14: three-dimensional labyrinth modeling: the three-dimensional labyrinth pattern that the plane labyrinth generated according to step 12 and step 13 are selected generates corresponding maze;
Step 15: Output rusults, printer model; The three-dimensional maze that display generates, and be kept at data file, direct printer model.
Step 14 of the present invention three-dimensional labyrinth modeling comprises carrier and passage; The carrier in described three-dimensional labyrinth is right cylinder or spheroid; The passage in three-dimensional labyrinth comprises interconnection and vertical passage.
Step of the present invention (1) midplane labyrinth data are for writing the script file of OpenSCAD, realize the modeling of three-dimensional labyrinth, OpenSCAD modeling software carries out " playing up " operation to script file and obtains three-dimensional entity model, and three-dimensional mesh data file can be derived, adopt the method for the order line process of OpenSCAD, utilize the script file of OpenSCAD to generate data file.
Beneficial effect of the present invention: the present invention's three-dimensional labyrinth design and the method for solid modelling only need the size in the given labyrinth of user, and User Interface generates random plane labyrinth automatically, ensure that diversity and the complicacy in labyrinth; The path in user's mouse interaction design labyrinth, then generates complete labyrinth further by User Interface, meets the demand of user individual design; Utilize the plane labyrinth generated to generate three-dimensional labyrinth further, user only need select the three-dimensional labyrinth pattern generated, and just automatically can be generated by User Interface; Finally derive the solid model in three-dimensional labyrinth, be applicable to current all 3 D-printing modes.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Fig. 2 is the design sketch that method midplane labyrinth generates and maze path shows of a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Fig. 3 is the present invention's a kind of three-dimensional labyrinth design with the method for solid modelling based on the vertical passage in the three-dimensional labyrinth of cylinder moulding and interconnection schematic diagram.
Fig. 4 is the three-dimensional maze figure based on cylinder moulding that a kind of three-dimensional labyrinth design of the present invention builds with OpenSCAD in the method for solid modelling.
Fig. 5 is based on the vertical passage in the three-dimensional labyrinth of ball moulding and interconnection schematic diagram in the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Fig. 6 is the three-dimensional maze figure based on ball moulding that a kind of three-dimensional labyrinth design of the present invention builds with OpenSCAD in the method for solid modelling.
Fig. 7 is a kind of three-dimensional labyrinth design of the present invention and the User Interface schematic diagram in the method for solid modelling.
Fig. 8 generates plane labyrinth schematic diagram one by user interactive in the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Fig. 9 generates plane labyrinth schematic diagram two by user interactive in the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Figure 10 generates plane labyrinth schematic diagram three by user interactive in the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Figure 11 generates plane labyrinth schematic diagram four by user interactive in the method for a kind of three-dimensional labyrinth design of the present invention and solid modelling.
Figure 12 to be the present invention's a kind of three-dimensional labyrinth design with the labyrinth pathfinding of the method User Interface of solid modelling play schematic diagram.
Figure 13 is a kind of three-dimensional labyrinth design of the present invention and model generation schematic diagram in the User Interface of embodiment 1 in the method for solid modelling.
Figure 14 is two kinds of three-dimensional labyrinth solid model schematic diagram that a kind of three-dimensional labyrinth design of the present invention generates with the embodiment of the method 1 of solid modelling.
Figure 15 is the 3 D-printing pictorial diagram of the three-dimensional maze that a kind of three-dimensional labyrinth design of the present invention generates with the method for solid modelling.
Embodiment
For the ease of it will be appreciated by those skilled in the art that the present invention is further illustrated below in conjunction with accompanying drawing.
Embodiment 1
The present invention generates plane labyrinth according to given labyrinth size, and then generates the solid model based on the three-dimensional labyrinth of on-plane surface moulding.A kind of three-dimensional labyrinth design of the present invention finally generates with the method for solid modelling the solid model that can be used for 3D and print, and provides User Interface.User only need arrange the pattern in the size in labyrinth and the three-dimensional labyrinth of generation, just automatically can be generated the three-dimensional maze that can be used for printing by User Interface.
The design of three-dimensional labyrinth and a method for solid modelling, comprise the following steps:
(1) generation in plane labyrinth: user is in the size in interactive interface input labyrinth, and interactive system generates and is applicable to the plane labyrinth being designed to three-dimensional labyrinth;
The algorithm thinking that plane labyrinth generates:
The first step, generate by specifying starting point to the maze path of specifying terminal, maze path can be provided at random by system, also can by user's designed, designed, and the User Interface so just determining the present invention's design can provide two kinds of modes to generate plane labyrinth;
Second step, generates other branch roads in labyrinth based on maze path, this step completely by system stochastic generation, based on the path in labyrinth, pixel-level generation branch road.
(2) three-dimensional labyrinth modeling: utilize OpenSCAD modeling software to set up the model in three-dimensional labyrinth, then generate target three-dimensional by Boolean calculation.
The generation in step of the present invention (1) plane labyrinth comprises the following steps:
Step 11: the labyrinth size obtaining user's input: the line number in labyrinth and columns, the line number in labyrinth is odd number, and the columns in labyrinth is even number;
Step 12: interactive system generates plane labyrinth: interactive system of the present invention provides two kinds of modes to generate plane labyrinth: one is system stochastic generation plane labyrinth, one generates plane labyrinth by user interactive, and there is the path of connection the left and right sides that the plane labyrinth of generation must meet labyrinth.
Step of the present invention (2) three-dimensional labyrinth modeling comprises the following steps:
Step 13: the pattern selecting three-dimensional labyrinth, selects based on cylinder moulding or based on ball moulding;
Step 14: three-dimensional labyrinth modeling: the three-dimensional labyrinth pattern that the plane labyrinth generated according to step 12 and step 13 are selected generates corresponding maze;
Step 15: Output rusults, printer model; The three-dimensional maze that display generates, and be kept at data file, direct printer model.
Step 14 of the present invention three-dimensional labyrinth modeling comprises carrier and passage; The carrier in described three-dimensional labyrinth is right cylinder or spheroid; The passage in three-dimensional labyrinth comprises interconnection and vertical passage.
Step of the present invention (1) midplane labyrinth data are for writing the script file of OpenSCAD, realize the modeling of three-dimensional labyrinth, OpenSCAD modeling software carries out " playing up " operation to script file and obtains three-dimensional entity model, and three-dimensional mesh data file can be derived, adopt the method for the order line process of OpenSCAD, utilize the script file of OpenSCAD to generate data file.
The modeling pattern of OpenSCAD modeling software is mainly operating unit with basic body, then generates target three-dimensional by Boolean calculation.General thought based on the three-dimensional labyrinth modeling of cylinder moulding implements boolean's difference operation at cylindrical outer surface, namely deducts the channel part in labyrinth at cylindrical outer surface, just can create a labyrinth at cylindrical outer surface.Adopt this modeling approach, the three-dimensional maze based on ball moulding can be designed equally.
Be illustrated in figure 1 a kind of three-dimensional labyrinth design of the present invention and the algorithm flow chart of the method for solid modelling, comprise:
Step 11 obtains the labyrinth size of user's input: the line number in labyrinth and columns, require that the line number in labyrinth is odd number, columns is even number.
Step 12 interactive system generates plane labyrinth: interactive system of the present invention provides two kinds of modes to generate plane labyrinth: one is system stochastic generation plane labyrinth, and one generates plane labyrinth by user interactive.There is the path of connection the left and right sides that the plane labyrinth generated must meet labyrinth.The effect realized as shown in Figure 2.
Step 13 selects the pattern in three-dimensional labyrinth.Selectable pattern has based on cylinder moulding with based on ball moulding.
Step 14 three-dimensional labyrinth modeling.The three-dimensional labyrinth pattern that the plane labyrinth generated according to step 12 and step 13 are selected generates corresponding maze.The carrier in the effect that labyrinth of three-dimensional labyrinth modeling and the passage in labyrinth, the carrier in labyrinth and right cylinder or spheroid, passage comprises interconnection and vertical passage.Fig. 3 is vertical passage based on the three-dimensional labyrinth of cylinder moulding and interconnection design drawing, and Fig. 5 is vertical passage based on the three-dimensional labyrinth of ball moulding and interconnection design drawing.
Step 15 Output rusults, printer model.The three-dimensional maze that display generates, and save as data file, direct printer model.Generate based on cylinder moulding three-dimensional maze as shown in Figure 4.Generate based on ball moulding three-dimensional maze as shown in Figure 6.
Be illustrated in figure 7 User Interface of the present invention.User can complete above-mentioned algorithm flow and generating three-dimensional models by simple mouse clicking operation, and the concrete steps of enforcement are as follows:
The numerical value frame input numerical value of step 71 user Rows and Cols in 2DMaze, requires Rows to be odd number and is not less than 5, Cols be even number and be not less than 6.User selects the pattern generating plane labyrinth:
(selecting RandomMaze pattern) is clicked Generate button and is generated plane labyrinth.The plane labyrinth generated shows in mutual interface, as shown in figure 12.
(selecting CreatMaze pattern) is clicked Create button and is created grid, begins through mouse click design maze path from the second row.Mouse left click even column or even number line, if twice click in front and back is positioned at colleague or same column, then can be linked to be straight line, as shown in Figure 8 successively; Mouse right click even column, if twice click in front and back is positioned at colleague, then can be linked to be straight line as shown in Figure 9 by the left and right sides successively.All paths formed of clicking can not be intersected.Click Finish button, click if last and be positioned at row second from the bottom, then complete the design of maze path as shown in Figure 10; Otherwise also need to click to the last one click and be positioned at row second from the bottom.Click Branch button, the maze path according to user's design generates other branch roads, completes the generation in plane labyrinth as shown in figure 11.
Step 72 user clicks the trivial games that startgame button can start labyrinth pathfinding in Game, clicks endgame button Exit Game, clicks Help button and can obtain Games Help.As shown in figure 12.
Step 73 user selects the pattern (cylinder/sphere) in the three-dimensional labyrinth generated in 3DMaze.Click Generate button and can generate three-dimensional labyrinth.The progress that progress bar display on the right side of status bar generates.Usually, the labyrinth formation speed based on cylinder moulding is faster than the labyrinth formation speed based on ball moulding.
" 3D " button in step 74 user click tools hurdle, on the right side of User Interface, a newly-increased window is used for showing the three-dimensional labyrinth generated.As shown in figure 13.User can be rotated by mouse, scaling, selects a suitable visual angle to check model.The pattern played up is set in Render, can multiselect.
The three-dimensional maze generated is saved as grid data file (obj file) by the save button in step 75 user click tools hurdle.The plane labyrinth of generation is saved as picture file (png file) by the camera icon in user's click tools hurdle.The three-dimensional model of final generation as shown in figure 14.
After obtaining the grid data file in three-dimensional labyrinth, just directly can print with 3D printer.Shown in Figure 15 is the 3 D-printing pictorial diagram of the three-dimensional maze that the present invention generates.
Above content is only to structure example of the present invention and explanation; affiliated those skilled in the art make various amendment to described specific embodiment or supplement or adopt similar mode to substitute; only otherwise depart from the structure of invention or surmount this scope as defined in the claims, protection scope of the present invention all should be belonged to.

Claims (5)

1. the design of three-dimensional labyrinth and a method for solid modelling, is characterized in that, comprise the following steps:
(1) generation in plane labyrinth: user is in the size in interactive interface input labyrinth, and interactive system generates and is applicable to the plane labyrinth being designed to three-dimensional labyrinth;
(2) three-dimensional labyrinth modeling: utilize OpenSCAD modeling software to set up the model in three-dimensional labyrinth, then generate target three-dimensional by Boolean calculation.
2. the method for three-dimensional labyrinth design according to claim 1 and solid modelling, it is characterized in that, the generation in described step (1) plane labyrinth comprises the following steps:
Step 11: the labyrinth size obtaining user's input: the line number in labyrinth and columns, the line number in labyrinth is odd number, and the columns in labyrinth is even number;
Step 12: interactive system generates plane labyrinth: interactive system provides two kinds of modes to generate plane labyrinth: one is system stochastic generation plane labyrinth, one generates plane labyrinth by user interactive, and there is the path of connection the left and right sides that the plane labyrinth of generation must meet labyrinth.
3. the method for three-dimensional labyrinth design according to claim 1 and solid modelling, it is characterized in that, described step (2) three-dimensional labyrinth modeling comprises the following steps:
Step 13: the pattern selecting three-dimensional labyrinth, selects based on cylinder moulding or based on ball moulding;
Step 14: three-dimensional labyrinth modeling: the three-dimensional labyrinth pattern that the plane labyrinth generated according to step 12 and step 13 are selected generates corresponding maze;
Step 15: Output rusults, printer model; The three-dimensional maze that display generates, and be kept at data file, direct printer model.
4. the method for three-dimensional labyrinth design according to claim 3 and solid modelling, it is characterized in that, the three-dimensional labyrinth modeling of described step 14 comprises carrier and passage; The carrier in described three-dimensional labyrinth is right cylinder or spheroid; The passage in three-dimensional labyrinth comprises interconnection and vertical passage.
5. the method for three-dimensional labyrinth design according to claim 1 and solid modelling, it is characterized in that, described step (1) midplane labyrinth data are for writing the script file of OpenSCAD, realize the modeling of three-dimensional labyrinth, OpenSCAD modeling software carries out " playing up " operation to script file and obtains three-dimensional entity model, and three-dimensional mesh data file can be derived, adopt the method for the order line process of OpenSCAD, utilize the script file of OpenSCAD to generate data file.
CN201510576424.7A 2015-09-11 2015-09-11 Three dimensional labyrinth designing and entity modeling method Pending CN105046033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510576424.7A CN105046033A (en) 2015-09-11 2015-09-11 Three dimensional labyrinth designing and entity modeling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510576424.7A CN105046033A (en) 2015-09-11 2015-09-11 Three dimensional labyrinth designing and entity modeling method

Publications (1)

Publication Number Publication Date
CN105046033A true CN105046033A (en) 2015-11-11

Family

ID=54452574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510576424.7A Pending CN105046033A (en) 2015-09-11 2015-09-11 Three dimensional labyrinth designing and entity modeling method

Country Status (1)

Country Link
CN (1) CN105046033A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201154203Y (en) * 2008-01-15 2008-11-26 西安理工大学 Dual facet cubic labyrinth toy
CN103786235A (en) * 2014-01-09 2014-05-14 中建钢构有限公司 Tower-type 3D (three-dimensional) printer and printing method thereof
CN103817934A (en) * 2014-01-26 2014-05-28 中建钢构有限公司 Engineering model 3D printing equipment and method
CN104376527A (en) * 2014-12-08 2015-02-25 陕西师范大学 Figure scrambling method based on random 3D Prim labyrinth
CN204322527U (en) * 2014-10-30 2015-05-13 成都美律科技有限公司 A kind of multi-functional 3D printing device with air conditioner refrigerating and 3-D scanning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201154203Y (en) * 2008-01-15 2008-11-26 西安理工大学 Dual facet cubic labyrinth toy
CN103786235A (en) * 2014-01-09 2014-05-14 中建钢构有限公司 Tower-type 3D (three-dimensional) printer and printing method thereof
CN103817934A (en) * 2014-01-26 2014-05-28 中建钢构有限公司 Engineering model 3D printing equipment and method
CN204322527U (en) * 2014-10-30 2015-05-13 成都美律科技有限公司 A kind of multi-functional 3D printing device with air conditioner refrigerating and 3-D scanning
CN104376527A (en) * 2014-12-08 2015-02-25 陕西师范大学 Figure scrambling method based on random 3D Prim labyrinth

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GC★★★STC: ""吴文明_毕业论文"", 《PAN.BAIDU.COM/S/1SJ1FAMX?ERRNO=0&ERRMSG=AUTH%20LOGIN%20SUCESS&&BDUSS=&SSNERROR=0》 *

Similar Documents

Publication Publication Date Title
CN104183005B (en) Graphics processing unit and rendering intent based on segment
CN102402791B (en) Three-dimensional fluid simulation method based on graphic processing unit (GPU)
KR101721715B1 (en) Connectivity depended geometry optimization for real-time rendering
Allard et al. Grimage: markerless 3D interactions
CN104781852A (en) A computer graphics method for rendering three dimensional scenes
CN110866342B (en) Cabinet modeling method and system and electronic equipment
CN107038745A (en) A kind of 3D tourist sights roaming interaction method and device
CN104778736B (en) The clothes three-dimensional animation generation method of single video content driven
JP4936522B2 (en) Image processing method and image processing apparatus
CN110503718A (en) Three-dimensional engineering model lightweight display methods
CN111292402A (en) Data processing method, device, equipment and computer readable storage medium
CN106952340A (en) The method and device of three-dimensional modeling
CN103093502A (en) Three-dimensional model information obtaining method based on rotary three views
Fu et al. Layerpaint: A multi-layer interactive 3d painting interface
CN108744515A (en) The display control method, device of preview map, equipment and storage medium in game
CN104537704B (en) A kind of feather real-time dynamic creation method of birds human trunk model
Antoniuk et al. Generation of complex underground systems for application in computer games with schematic maps and L-systems
CN105046033A (en) Three dimensional labyrinth designing and entity modeling method
CN102880470A (en) Three-dimensional game engine kernel structure
CN105224325B (en) Rendering method and device
Adzhiev et al. Augmented sculpture: Computer ghosts of physical artifacts
Na et al. A Study on the Production of 3D Virtual Costumes for Building Virtual Costume Museum–Focusing on Fashion in the 1980s
CN104036547A (en) Method and device for three-dimensional brush to generate network module in real time based on Leap Motion control
JP4318580B2 (en) 3D tree shape generator
CN115908664B (en) Animation generation method and device for man-machine interaction, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Yang Zhouwang

Inventor after: Liu Ligang

Inventor after: Wang Shiwei

Inventor after: Wang Kang

Inventor before: Zhang Peng

CB03 Change of inventor or designer information
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111

RJ01 Rejection of invention patent application after publication