CN105094718A - Method for 3D model adjustment based on mobile terminal and mobile terminal - Google Patents

Method for 3D model adjustment based on mobile terminal and mobile terminal Download PDF

Info

Publication number
CN105094718A
CN105094718A CN201510467696.3A CN201510467696A CN105094718A CN 105094718 A CN105094718 A CN 105094718A CN 201510467696 A CN201510467696 A CN 201510467696A CN 105094718 A CN105094718 A CN 105094718A
Authority
CN
China
Prior art keywords
model
coordinate
rotation
mobile terminal
axis
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.)
Granted
Application number
CN201510467696.3A
Other languages
Chinese (zh)
Other versions
CN105094718B (en
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.)
Guangzhou Havit Technology Co., Ltd.
Original Assignee
GUANGZHOU HAVIT COMPUTER TECHNOLOGY Co 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 GUANGZHOU HAVIT COMPUTER TECHNOLOGY Co Ltd filed Critical GUANGZHOU HAVIT COMPUTER TECHNOLOGY Co Ltd
Priority to CN201510467696.3A priority Critical patent/CN105094718B/en
Publication of CN105094718A publication Critical patent/CN105094718A/en
Application granted granted Critical
Publication of CN105094718B publication Critical patent/CN105094718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method for 3D model adjustment based on a mobile terminal and the mobile terminal. The technical problem that presently, after through a server slicing is performed on a 3D model selected by a mobile phone and a 3D printer and then the 3D model is sent to the 3D printer to be printed, only remote control through the mobile phone and on-line selection of 3D model printing can be performed, the visual browsing operations such as rotation, amplification and shrinkage of the 3D model needing to be printed cannot be performed in the mobile phone, so that the experience is low is solved. The method comprises the steps of catching an adjusting track triggering the 3D model, and performing real-time conversion based on the rotating angle of the coordinate axis on the 3D model according to the adjusting track; performing treatment according to the rotating angle and a preset image rotation processing mode, and obtaining an observation point camera three-dimensional spatial position corresponding to the processed 3D model; and performing corresponding 3D model graphic rendering treatment in real time according to the observation point camera three-dimensional spatial position.

Description

A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal
Technical field
The present invention relates to 3D printing technique field, particularly relate to a kind of method and the mobile terminal that carry out the adjustment of 3D model based on mobile terminal.
Background technology
At present in 3D Print Control mode, mainly connect conputer controlled based on usb line and print and off-line printing two kinds of control modes.Usb line connects the length that the connection distance of 3D printer and computer is confined to usb line by mode that conputer controlled prints.Make user in use as needed to bring great inconvenience when mobile 3 D printer or computer.Although off-line printing mode does not connect apart from limited problem, user prints at every turn, needs to be, after the executable file of 3D printer, copy to three-dimensional model diagram section in the SD card in 3D printer in computer.Again SD card is turned back in 3D printer, carry out selection by LCD screen and control to print.This series of tedious steps brings great inconvenience equally also to the use of user.Except these respective weak points, the three-dimensional model diagram of these two kinds of control modes is downloaded and section all needs to pass through computer.User is made also to open computer-aided use to use 3D printer to have to.
Existing 3D Print Control mode is that mobile phone is all connected Cloud Server by wireless network with 3D printer, and user is controlled and on-line selection three dimensional model printing by mobile phone remote.The three-dimensional model chosen is re-send in 3D printer and prints after being cut into slices to 3D model by Cloud Server.
But above-mentioned mobile phone is all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, thus cause the low technical matters of experience property.
Summary of the invention
Embodiments provide a kind of method and the mobile terminal that carry out the adjustment of 3D model based on mobile terminal, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, and the technical matters that the experience property caused is low.
A kind of method of carrying out the adjustment of 3D model based on mobile terminal that the embodiment of the present invention provides, comprising:
Catch the adjustment track triggering 3D model, and according to described adjustment track, described 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis;
Rotate processing mode according to the described anglec of rotation according to prediction picture to process, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding;
Corresponding described 3D model graph rendering process is carried out in real time according to described observation point camera three-dimensional space position.
Alternatively, catch and trigger the adjustment track of 3D model, and also comprise before according to described adjustment track described 3D model being carried out based on the anglec of rotation of coordinate axis real-time conversion:
Call preset described 3D model;
And/or
The server of communication connection relation is had to be loaded into described 3D model by setting up.
Alternatively, catch the adjustment track triggering 3D model, and carry out specifically comprising based on the real-time conversion of the anglec of rotation of coordinate axis to described 3D model according to described adjustment track:
Catch the described adjustment track triggering described 3D model;
According to described adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
According to the described unit anglec of rotation obtain X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data.
Alternatively, rotate processing mode process according to the described anglec of rotation according to prediction picture, the observation point camera three-dimensional space position obtaining the described 3D model after process corresponding specifically comprises:
According to described X-coordinate spin data, described Y-coordinate spin data, described based on Z axis X-coordinate spin data and the described spin data based on Z axis Y-coordinate, and described Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding.
Alternatively, catch the described adjustment track triggering described 3D model specifically to comprise:
Judge whether the described adjustment track triggering described 3D model is once be interrupted triggering, if so, then close preset scanning display.
A kind of mobile terminal that the embodiment of the present invention provides, comprising:
Scaling unit, for catching the adjustment track triggering 3D model, and carries out the real-time conversion of the anglec of rotation based on coordinate axis according to described adjustment track to described 3D model;
Image rotation processing unit, processing for rotating processing mode according to the described anglec of rotation according to prediction picture, obtaining the observation point camera three-dimensional space position that the described 3D model after process is corresponding;
Render processing unit, carries out corresponding described 3D model graph rendering process for real-time according to described observation point camera three-dimensional space position.
Alternatively, described mobile terminal also comprises:
Call unit, for calling preset described 3D model;
And/or
Be loaded into unit, for having the server of communication connection relation to be loaded into described 3D model by setting up.
Alternatively, scaling unit specifically comprises:
Catch subelement, for catching the described adjustment track triggering described 3D model;
Computation subunit, for according to described adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
Obtain subelement, for obtain according to the described unit anglec of rotation X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data.
Alternatively, described image rotation processing unit, specifically for according to described X-coordinate spin data, described Y-coordinate spin data, described based on Z axis X-coordinate spin data and the described spin data based on Z axis Y-coordinate, and described Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding.
Alternatively, described seizure subelement, specifically for judging whether the described adjustment track triggering described 3D model is once be interrupted triggering, if so, then closes preset scanning display.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal that the embodiment of the present invention provides, the method of carrying out the adjustment of 3D model based on mobile terminal comprises: catch the adjustment track triggering 3D model, and 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis according to adjustment track; Rotate processing mode according to the anglec of rotation according to prediction picture to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding; Corresponding 3D model graph rendering process is carried out in real time according to observation point camera three-dimensional space position.In the present embodiment, by carrying out the real-time conversion of the anglec of rotation based on coordinate axis to 3D model according to adjustment track, rotate processing mode according to the anglec of rotation according to prediction picture again to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, the finally real-time 3D model graph rendering process carrying out correspondence according to observation point camera three-dimensional space position, just the adjustment by carrying out 3D model at mobile terminal is achieved, the printing that 3D printer carries out 3D model is triggered again after making direct vision 3D model, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, and the technical matters that the experience property caused is low.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet that based on mobile terminal carry out an embodiment of the method for 3D model adjustment of Fig. 1 for providing in the embodiment of the present invention;
A kind of schematic flow sheet that based on mobile terminal carry out another embodiment of the method for 3D model adjustment of Fig. 2 for providing in the embodiment of the present invention;
A kind of structural representation of an embodiment of mobile terminal of Fig. 3 for providing in the embodiment of the present invention;
A kind of structural representation of another embodiment of mobile terminal of Fig. 4 for providing in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of method and the mobile terminal that carry out the adjustment of 3D model based on mobile terminal, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, and the technical matters that the experience property caused is low.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and the embodiment of not all.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, an a kind of embodiment of the method by 3D slicing device control 3D printer comprises:
101, catch the adjustment track triggering 3D model, and 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis according to adjustment track;
In the present embodiment, when user needs the observation before being printed 3D model by mobile terminal and adjustment, need to catch the adjustment track triggering 3D model, and 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis according to adjustment track.
It should be noted that, can be carry out screen touch event handling by OpenGLSurfaceView, and touch mainly processes inner the adding of member function onTouchEvent () of inheriting parent by screen touch event handling.
102, rotate processing mode according to the anglec of rotation according to prediction picture to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding;
When catching the adjustment track triggering 3D model, and after according to adjustment track the real-time conversion based on the anglec of rotation of coordinate axis being carried out to 3D model, need to rotate processing mode according to the anglec of rotation according to prediction picture to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding.
It should be noted that, carry out graphics process (such as Scalable rotates) by OpenGLRender class.
103, corresponding 3D model graph rendering process is carried out according to observation point camera three-dimensional space position in real time.
Process when rotating processing mode according to the anglec of rotation according to prediction picture, after obtaining observation point camera three-dimensional space position corresponding to the 3D model after process, need to carry out corresponding 3D model graph rendering process according to observation point camera three-dimensional space position in real time, set OpenGL graphic plotting option, draw the data coming from stl file, thus realize the display of three-dimensional picture.
It should be noted that, the 3D figure drawn by OpenGLSurfaceView by ShowSTL class is shown.
In the present embodiment, by carrying out the real-time conversion of the anglec of rotation based on coordinate axis to 3D model according to adjustment track, rotate processing mode according to the anglec of rotation according to prediction picture again to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, the finally real-time 3D model graph rendering process carrying out correspondence according to observation point camera three-dimensional space position, just the adjustment by carrying out 3D model at mobile terminal is achieved, the printing that 3D printer carries out 3D model is triggered again after making direct vision 3D model, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, and the technical matters that the experience property caused is low.
The above is described in detail the process of the method by 3D slicing device control 3D printer, be described in detail rotating processing mode to the real-time conversion of the anglec of rotation based on coordinate axis and prediction picture below, refer to Fig. 2, in the embodiment of the present invention, another embodiment of a kind of method by 3D slicing device control 3D printer comprises:
201, call preset 3D model or be loaded into 3D model by setting up the server having communication connection relation;
In the present embodiment, when user needs the observation before being printed 3D model by mobile terminal and adjustment, need to call preset 3D model or be loaded into 3D model by setting up the server having communication connection relation.
Aforesaid mobile terminal can be mobile phone, can be panel computer etc., and aforesaid server can be Cloud Server.
202, judge whether the adjustment track triggering 3D model is once be interrupted triggering, if so, then performs 203;
When calling preset 3D model or by setting up after the server having communication connection relation is loaded into 3D model, needing whether the adjustment track judging to trigger 3D model is once be interrupted triggering, if so, then performing 203.
203, preset scanning display is closed;
When judging that the adjustment track triggering 3D model is as being once interrupted triggering, then close preset scanning display.
It can be this class of android.opengl.GLSurfaceView by OpenGLSurfaceView Similar integral, onTouchEvent () method inside this class of heavy duty, judge whether the adjustment track triggering 3D model is once be interrupted triggering, once touch as long as namely there occurs, just close the scanning display of acquiescence.
204, according to adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
After closedown preset scanning display, need the real-time calculating of unit anglec of rotation when carrying out 360 degree of rotations according to adjustment track in conjunction with mobile terminal screen size.
Such as by obtaining the length of user mobile phone screen, wide, then calculate image in their unit lengths carry out 360 degree rotate time the unit anglec of rotation, that's all, such as 360/180=2 represents that width is the screen 3D rendering rotation 2 degree of 180, and the distance of finger movement is in the horizontal direction 1.
It should be noted that, can be carry out screen touch event handling by OpenGLSurfaceView, and touch mainly processes inner the adding of member function onTouchEvent () of inheriting parent by screen touch event handling.
205, according to the unit anglec of rotation obtain X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data;
After the real-time calculating of the unit anglec of rotation when to carry out 360 degree according to adjustment track in conjunction with mobile terminal screen size and rotate, need according to unit anglec of rotation acquisition X-coordinate spin data X_camera, Y-coordinate spin data Y_camera, based on Z axis X-coordinate spin data Z_X_camera and the spin data Z_Y_camera based on Z axis Y-coordinate, and Z axis data Z_camera.
Such as according to the distance (level, vertical) that user's finger slides at screen, by OpenGLSurfaceView class, they are converted into the anglec of rotation of 3D rendering, then these angles rotated are used for the image rotation processing method of OpenGLRender class
206, according to X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding;
When obtain according to the unit anglec of rotation X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and after Z axis data, need according to X-coordinate spin data X_camera, Y-coordinate spin data Y_camera, based on Z axis X-coordinate spin data Z_X_camera and the spin data Z_Y_camera based on Z axis Y-coordinate, and Z axis data Z_camera processes according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding.
It should be noted that, carry out graphics process (such as Scalable rotates) by OpenGLRender class.
207, corresponding 3D model graph rendering process is carried out according to observation point camera three-dimensional space position in real time.
When according to X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data process according to prediction picture rotation processing mode, after obtaining observation point camera three-dimensional space position corresponding to the 3D model after process, need to carry out corresponding 3D model graph rendering process according to observation point camera three-dimensional space position in real time, set OpenGL graphic plotting option, draw the data coming from stl file, thus realize the display of three-dimensional picture.
It should be noted that, the 3D figure drawn by OpenGLSurfaceView by ShowSTL class is shown.
For the ease of understanding, be described in detail implementation embodiment illustrated in fig. 2 below, application examples comprises:
First two java classs are set up: one is OpenGLRender, and he directly realizes android.opengl.GlSurfaceView.Render interface, and another is OpenGLSurfaceView, and he directly inherits android.opengl.GlSurfaceView class.In order to realize the display of 3D model and can adjust 3D model (amplify, reduce, horizontally rotate, vertical rotary).Also to design a ShowSTL class, its direct succession of this class and android.app.Activity and the interface realizing android.view.View.OnClickListener.
Next the class designed above is described:
OpenGLRender class: this class mainly carries out the drafting of 3-D view, and graphics process (such as Scalable, rotate), the drafting of 3-D view is mainly in the onDrawFrame () function of father's interface of its realization, set OpenGL graphic plotting option, draw the data coming from stl file, thus realize the display of three-dimensional picture.For graphics process (Scalable rotates).OpenGLES does not provide such function, team writes algorithm realization by oneself, concrete thinking: by the GLU.gluLookAt () function of OpenGLES, the three-dimensional position changing the observation point camera (concept in OpenGL) of image realizes rotation and the Scalable of figure, such mode not only reduces the data operation of flood tide, and accelerates the fluency of display of 3D rendering.
3-D view Rotation Algorithm java key code:
//Z_X_camera and Z_Y_camera is the z-axis data that each spinning produces,
//Z_camera is common z-axis data;
if(isX==true)
{
X_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.sin(angle*Math.PI/180));
Z_X_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.cos(angle*Math.PI/180));
Z_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.cos(angle*Math.PI/180));
}
else
{
Y_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.sin(angle*Math.PI/180));
Z_Y_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.cos(angle*Math.PI/180));
Z_camera=(float)((RotateRadius+mytriangle.fangdasuoxiao)*Math.cos(angle*Math.PI/180));
}
OpenGLSurfaceView class: this kind ofly mainly carry out screen touch event handling, and the setting of graph rendering pattern.Touch mainly processes inner the adding of member function onTouchEvent () of inheriting parent by screen touch event handling, realization approach is: the distance (level of sliding at screen according to user's finger, vertically), they are converted into the anglec of rotation of 3D rendering, then these angles rotated are used for the image rotation processing method of OpenGLRender class.
First by obtaining the length of user mobile phone screen, wide, then calculate image in their unit lengths carry out 360 degree rotate time the unit anglec of rotation, that's all, such as 360/180=2 represents that width is the screen 3D rendering rotation 2 degree of 180, and the distance of finger movement is in the horizontal direction 1.
Method is below the java key code of the disposal route for the different moving direction of 3D model.
OpenGLSurfaceView class inherits this class of android.opengl.GLSurfaceView.OnTouchEvent () method inside this class of its heavy duty.Being implemented as follows of the method:
ShowSTL class: the 3D figure mainly shown OpenGLSurfaceView draws shows, the adjustment function of simultaneously adding 3D model (is amplified, reduce, horizontally rotate, vertical rotary) interactive interface, the storage of some state flag bits relied on during most important auxiliary 3D models show and detection, such as, click model large buttons, the value of the display multiple of amendment current Graphics, during for 3D modeling rendering.Again such as, record current whether click and move horizontally or the button of vertically movement, it is an enable effect in fact.The display adjusting method of 3D model depends on the various status informations of whole class record very much.
The value of the value mytriangle.fangdasuoxiao of the 3D models show multiple that the graphical interaction interface (button) of being recorded by class ShowSTL is revised, (level is rotated at 3D model, vertically) in algorithm java key code, the called position of the camera visual angle point inside OpenGL that makes produces far and near effect, thus reaches the method for adjustment of 3D model Scalable.
In the present embodiment, by carrying out the real-time conversion of the anglec of rotation based on coordinate axis to 3D model according to adjustment track, rotate processing mode according to the anglec of rotation according to prediction picture again to process, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, the finally real-time 3D model graph rendering process carrying out correspondence according to observation point camera three-dimensional space position, just the adjustment by carrying out 3D model at mobile terminal is achieved, the printing that 3D printer carries out 3D model is triggered again after making direct vision 3D model, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, the rotation needing the 3D model printed cannot be carried out in mobile phone, amplify, the operation intuitively browsed such as to reduce, and the technical matters that the experience property caused is low, and by the GLU.gluLookAt () function of OpenGLES, the three-dimensional position changing the observation point camera of image realizes rotation and the Scalable of figure, such mode not only reduces the data operation of flood tide, and accelerate the fluency of display of 3D rendering.
Refer to Fig. 3, an embodiment of a kind of mobile terminal provided in the embodiment of the present invention comprises:
Scaling unit 301, for catching the adjustment track triggering 3D model, and carries out the real-time conversion of the anglec of rotation based on coordinate axis to 3D model according to adjustment track;
Image rotation processing unit 302, processing for rotating processing mode according to the anglec of rotation according to prediction picture, obtaining the observation point camera three-dimensional space position that the 3D model after process is corresponding;
Render processing unit 303, carries out corresponding 3D model graph rendering process for real-time according to observation point camera three-dimensional space position.
In the present embodiment, according to adjustment track, 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis by scaling unit 301, image rotation processing unit 302 rotates processing mode according to the anglec of rotation according to prediction picture again and processes, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, render processing unit 303 is finally real-time carries out corresponding 3D model graph rendering process according to observation point camera three-dimensional space position, just the adjustment by carrying out 3D model at mobile terminal is achieved, the printing that 3D printer carries out 3D model is triggered again after making direct vision 3D model, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, cannot carry out needing the rotation of the 3D model printed in mobile phone, amplify, the operation intuitively browsed such as reduce, and the technical matters that the experience property caused is low.
The above is described in detail each unit of mobile terminal, and will be described in detail extra cell and subelement below, and refer to Fig. 4, another embodiment of a kind of mobile terminal provided in the embodiment of the present invention comprises:
Call unit 401, for calling preset 3D model;
And/or
Be loaded into unit 402, for being loaded into 3D model by setting up the server having communication connection relation.
Scaling unit 403, for catching the adjustment track triggering 3D model, and carries out the real-time conversion of the anglec of rotation based on coordinate axis to 3D model according to adjustment track;
Scaling unit 403 comprises further:
Catching subelement 4031, for catching the adjustment track triggering 3D model, catching subelement 4031, specifically for judging whether the adjustment track triggering 3D model is once be interrupted triggering, if so, then closing preset scanning display.
Computation subunit 4031, for according to adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
Obtain subelement 4032, for obtain according to the unit anglec of rotation X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data.
Image rotation processing unit 404, process for rotating processing mode according to the anglec of rotation according to prediction picture, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, image rotation processing unit 404, specifically for according to X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding;
Render processing unit 405, carries out corresponding 3D model graph rendering process for real-time according to observation point camera three-dimensional space position.
In the present embodiment, according to adjustment track, 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis by scaling unit 403, image rotation processing unit 404 rotates processing mode according to the anglec of rotation according to prediction picture again and processes, obtain the observation point camera three-dimensional space position that the 3D model after process is corresponding, render processing unit 405 is finally real-time carries out corresponding 3D model graph rendering process according to observation point camera three-dimensional space position, just the adjustment by carrying out 3D model at mobile terminal is achieved, the printing that 3D printer carries out 3D model is triggered again after making direct vision 3D model, solve current mobile phone and be all connected Cloud Server by wireless network with 3D printer, user is controlled and on-line selection three dimensional model printing by mobile phone remote.After the three-dimensional model chosen is cut into slices to 3D model by Cloud Server, re-send in 3D printer and print, can only be controlled and on-line selection three dimensional model printing by mobile phone remote, the rotation needing the 3D model printed cannot be carried out in mobile phone, amplify, the operation intuitively browsed such as to reduce, and the technical matters that the experience property caused is low, and by the GLU.gluLookAt () function of OpenGLES, the three-dimensional position changing the observation point camera of image realizes rotation and the Scalable of figure, such mode not only reduces the data operation of flood tide, and accelerate the fluency of display of 3D rendering.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some orders in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. carry out a method for 3D model adjustment based on mobile terminal, it is characterized in that, comprising:
Catch the adjustment track triggering 3D model, and according to described adjustment track, described 3D model is carried out to the real-time conversion of the anglec of rotation based on coordinate axis;
Rotate processing mode according to the described anglec of rotation according to prediction picture to process, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding;
Corresponding described 3D model graph rendering process is carried out in real time according to described observation point camera three-dimensional space position.
2. method of carrying out the adjustment of 3D model based on mobile terminal according to claim 1, it is characterized in that, catch and trigger the adjustment track of 3D model, and also comprise before according to described adjustment track described 3D model being carried out based on the anglec of rotation of coordinate axis real-time conversion:
Call preset described 3D model;
And/or
The server of communication connection relation is had to be loaded into described 3D model by setting up.
3. method of carrying out the adjustment of 3D model based on mobile terminal according to claim 1 and 2, it is characterized in that, catch the adjustment track triggering 3D model, and carry out specifically comprising based on the real-time conversion of the anglec of rotation of coordinate axis to described 3D model according to described adjustment track:
Catch the described adjustment track triggering described 3D model;
According to described adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
According to the described unit anglec of rotation obtain X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data.
4. method of carrying out the adjustment of 3D model based on mobile terminal according to claim 3, it is characterized in that, rotate processing mode according to the described anglec of rotation according to prediction picture to process, the observation point camera three-dimensional space position obtaining the described 3D model after process corresponding specifically comprises:
According to described X-coordinate spin data, described Y-coordinate spin data, described based on Z axis X-coordinate spin data and the described spin data based on Z axis Y-coordinate, and described Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding.
5. method of carrying out the adjustment of 3D model based on mobile terminal according to claim 3, is characterized in that, catches the described adjustment track triggering described 3D model and specifically comprises:
Judge whether the described adjustment track triggering described 3D model is once be interrupted triggering, if so, then close preset scanning display.
6. a mobile terminal, is characterized in that, comprising:
Scaling unit, for catching the adjustment track triggering 3D model, and carries out the real-time conversion of the anglec of rotation based on coordinate axis according to described adjustment track to described 3D model;
Image rotation processing unit, processing for rotating processing mode according to the described anglec of rotation according to prediction picture, obtaining the observation point camera three-dimensional space position that the described 3D model after process is corresponding;
Render processing unit, carries out corresponding described 3D model graph rendering process for real-time according to described observation point camera three-dimensional space position.
7. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises:
Call unit, for calling preset described 3D model;
And/or
Be loaded into unit, for having the server of communication connection relation to be loaded into described 3D model by setting up.
8. the mobile terminal according to claim 6 or 7, is characterized in that, scaling unit specifically comprises:
Catch subelement, for catching the described adjustment track triggering described 3D model;
Computation subunit, for according to described adjustment track in conjunction with mobile terminal screen size carry out 360 degree rotate time the real-time calculating of the unit anglec of rotation;
Obtain subelement, for obtain according to the described unit anglec of rotation X-coordinate spin data, Y-coordinate spin data, based on Z axis X-coordinate spin data and the spin data based on Z axis Y-coordinate, and Z axis data.
9. mobile terminal according to claim 8, it is characterized in that, described image rotation processing unit, specifically for according to described X-coordinate spin data, described Y-coordinate spin data, described based on Z axis X-coordinate spin data and the described spin data based on Z axis Y-coordinate, and described Z axis data process according to prediction picture rotation processing mode, obtain the observation point camera three-dimensional space position that the described 3D model after process is corresponding.
10. mobile terminal according to claim 8, is characterized in that, described seizure subelement, specifically for judging whether the described adjustment track triggering described 3D model is once be interrupted triggering, if so, then closes preset scanning display.
CN201510467696.3A 2015-07-30 2015-07-30 A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal Active CN105094718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510467696.3A CN105094718B (en) 2015-07-30 2015-07-30 A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510467696.3A CN105094718B (en) 2015-07-30 2015-07-30 A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal

Publications (2)

Publication Number Publication Date
CN105094718A true CN105094718A (en) 2015-11-25
CN105094718B CN105094718B (en) 2019-02-19

Family

ID=54575275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510467696.3A Active CN105094718B (en) 2015-07-30 2015-07-30 A kind of method and mobile terminal carrying out the adjustment of 3D model based on mobile terminal

Country Status (1)

Country Link
CN (1) CN105094718B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644395A (en) * 2016-07-21 2018-01-30 华为终端(东莞)有限公司 Image processing method and mobile device
CN107767344A (en) * 2017-11-07 2018-03-06 上海漂视网络科技有限公司 A kind of cloud methods of exhibiting of 3D models
CN112667121A (en) * 2021-02-04 2021-04-16 深圳市桔子智能信息科技有限公司 Sliding interaction method for realizing display of 3D model and data on mobile terminal
CN115145456A (en) * 2022-06-29 2022-10-04 重庆长安汽车股份有限公司 Rotation of 3D car model control system and control method
CN117002011A (en) * 2023-07-19 2023-11-07 上海轮廓科技有限公司 3D printing method, terminal device, readable storage medium and computer program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088650A1 (en) * 2008-10-07 2010-04-08 Christopher Kaltenbach Internet-enabled apparatus, system and methods for physically and virtually rendering three-dimensional objects
CN102420839A (en) * 2010-09-27 2012-04-18 中国电信股份有限公司 Method and system for realizing browse of 3D (three-dimensional) model as well as server
CN103617220A (en) * 2013-11-22 2014-03-05 北京掌阔移动传媒科技有限公司 Method and device for implementing mobile terminal 3D (three dimensional) model
CN103810746A (en) * 2014-01-03 2014-05-21 Tcl集团股份有限公司 Method and device of rendering 3D (three dimensional) model in any orientation
CN104103091A (en) * 2014-07-17 2014-10-15 北京毛豆科技有限公司 3D intelligent modeling method and system and a flexible manufacturing system of 3D model
CN104504761A (en) * 2014-12-15 2015-04-08 天脉聚源(北京)科技有限公司 Method and device for controlling rotation of 3D (three-dimensional) model
CN104537720A (en) * 2014-12-15 2015-04-22 天脉聚源(北京)传媒科技有限公司 Method and device for multi-terminal synchronous presentation of 3D models

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088650A1 (en) * 2008-10-07 2010-04-08 Christopher Kaltenbach Internet-enabled apparatus, system and methods for physically and virtually rendering three-dimensional objects
CN102420839A (en) * 2010-09-27 2012-04-18 中国电信股份有限公司 Method and system for realizing browse of 3D (three-dimensional) model as well as server
CN103617220A (en) * 2013-11-22 2014-03-05 北京掌阔移动传媒科技有限公司 Method and device for implementing mobile terminal 3D (three dimensional) model
CN103810746A (en) * 2014-01-03 2014-05-21 Tcl集团股份有限公司 Method and device of rendering 3D (three dimensional) model in any orientation
CN104103091A (en) * 2014-07-17 2014-10-15 北京毛豆科技有限公司 3D intelligent modeling method and system and a flexible manufacturing system of 3D model
CN104504761A (en) * 2014-12-15 2015-04-08 天脉聚源(北京)科技有限公司 Method and device for controlling rotation of 3D (three-dimensional) model
CN104537720A (en) * 2014-12-15 2015-04-22 天脉聚源(北京)传媒科技有限公司 Method and device for multi-terminal synchronous presentation of 3D models

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644395A (en) * 2016-07-21 2018-01-30 华为终端(东莞)有限公司 Image processing method and mobile device
CN107644395B (en) * 2016-07-21 2021-08-10 荣耀终端有限公司 Image processing method and mobile device
CN107767344A (en) * 2017-11-07 2018-03-06 上海漂视网络科技有限公司 A kind of cloud methods of exhibiting of 3D models
CN112667121A (en) * 2021-02-04 2021-04-16 深圳市桔子智能信息科技有限公司 Sliding interaction method for realizing display of 3D model and data on mobile terminal
CN112667121B (en) * 2021-02-04 2022-07-26 深圳仙库智能有限公司 Sliding interaction method for realizing display of 3D model and data on mobile terminal
CN115145456A (en) * 2022-06-29 2022-10-04 重庆长安汽车股份有限公司 Rotation of 3D car model control system and control method
CN115145456B (en) * 2022-06-29 2024-06-11 重庆长安汽车股份有限公司 Rotation control system and control method of 3D car model
CN117002011A (en) * 2023-07-19 2023-11-07 上海轮廓科技有限公司 3D printing method, terminal device, readable storage medium and computer program product

Also Published As

Publication number Publication date
CN105094718B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN105094718A (en) Method for 3D model adjustment based on mobile terminal and mobile terminal
JP4991154B2 (en) Image display device, image display method, and command input method
CN108876934B (en) Key point marking method, device and system and storage medium
CN102388362B (en) The editor of the 2D soft-article-consumption product in complicated 3d space application
US9076261B2 (en) Virtual drafting tools
EP3555736B1 (en) System and method for management of handwritten diagram connectors
US11123932B2 (en) System and method for providing variation in bead size to improve geometrical accuracy of deposited layers in an additive manufacturing process
CN112907760B (en) Three-dimensional object labeling method and device, tool, electronic equipment and storage medium
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
EP3970124B1 (en) Normalization of objects for a 3d environment within an authoring application
CN105103112A (en) Apparatus and method for manipulating the orientation of object on display device
JP6595896B2 (en) Electronic device and display control method
US20180158239A1 (en) Sketch-based 3d modeling system
CN115847384A (en) Mechanical arm safety plane information display method and related product
CN115100387A (en) Three-dimensional scene efficient visual editing method and equipment based on digital twins
CN105278751A (en) Method and apparatus for implementing human-computer interaction, and protective case
US20150095824A1 (en) Method and apparatus for providing user interface according to size of template edit frame
US20210090349A1 (en) Window-shaping virtual reality system
US11385783B2 (en) Gesture-based manipulator for rotation
US11232237B2 (en) System and method for perception-based selection of features in a geometric model of a part
EP3295291B1 (en) Drawing object inferring system and method
CN104036547A (en) Method and device for three-dimensional brush to generate network module in real time based on Leap Motion control
US20230351706A1 (en) Scanning interface systems and methods for building a virtual representation of a location
CN117557717A (en) Method, apparatus and storage medium for generating a three-dimensional model in the form of a card
CN112041792A (en) Display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510000 Room 1307, 13th Floor, Phase II (B, C) of Poly World Trade Center, 1000 Xingang East Road, Haizhu District, Guangzhou City, Guangdong Province (for office functions only)

Patentee after: Guangzhou Havit Technology Co., Ltd.

Address before: 510335 Pauli World Trade Center 1307, 1000 Xingang East Road, Haizhu District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Havit Computer Technology Co., Ltd.