CN106530224A - Method for driving 3D object transformation via planar coordinate axes - Google Patents
Method for driving 3D object transformation via planar coordinate axes Download PDFInfo
- Publication number
- CN106530224A CN106530224A CN201610895418.2A CN201610895418A CN106530224A CN 106530224 A CN106530224 A CN 106530224A CN 201610895418 A CN201610895418 A CN 201610895418A CN 106530224 A CN106530224 A CN 106530224A
- Authority
- CN
- China
- Prior art keywords
- reference axis
- dimensional
- slide block
- dimensional coordinate
- alternative types
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000009466 transformation Effects 0.000 title abstract description 10
- 238000006243 chemical reaction Methods 0.000 claims description 28
- 230000001960 triggered effect Effects 0.000 claims description 9
- 230000000007 visual effect Effects 0.000 abstract description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010146 3D printing Methods 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
- G06T3/604—Rotation of whole images or parts thereof using coordinate rotation digital computer [CORDIC] devices
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a method for driving 3D object transformation via planar coordinate axes. The method comprises that S1) selection information of a graph is obtained, and after that the graph is selected, 3D coordinates are established according to the selected graph; S2) a transformation type is set, and transformation types include movement, rotation and zooming, selection information of the transformation type is obtained in real time, and a unit corresponding to the transformation type is displayed in the established 3D coordinates; and S3) slide blocks are arranged in different coordinate axes of the established 3D coordinates, and position transformation information of the slide blocks is obtained to change the shape of the selected graph. A 3D coordinate system is established, and movement, rotation and zooming of the selected graph are completed in the 3D coordinate system, and compared with a traditional handle, the visual effect of the established 3D coordinate system is larger in structural size, convenience is provided for selection and operation in a planar screen, and operation of the graph in a transformation 3D scene is simpler and is easy to realize.
Description
Technical field
The present invention relates to three-dimensional software technical field, more specifically, more particularly to a kind of to be driven by plane coordinates axle
The method of three-dimensional body conversion.
Background technology
With the development of three-dimensional software technology, designer is turned to directly in three dimensions from basic CAD planar designs
Interior design, especially as the emergence of 3D printing technique.But, the object in two-dimensional flat screen in operation three-dimensional scenic does three
Dimension conversion, just becomes a little difficult, and in particular for teenager and children, what especially that was original directly inputs conversion ginseng
Counting method.
At present, three-dimensional software on the market is mainly by choosing during three-dimensional body, and periphery shows several handles, drags not
Same handle can realize different conversion:Such as the mobile handle being pulled up when moving on Z axis;Rotation sentence is dragged during rotation
Handle;XYZ axial scaling handles are dragged during scaling.
But, there are three distinct disadvantages in said method, respectively:1st, when object very little, these handles are difficult to point
Distinguish;2nd, handle very little, it is difficult to choose dragging;The size converted during dragging is difficult to hold.
The content of the invention
(1) technical problem
In sum, the complexity of its operation during graph transformation how is reduced, becomes those skilled in the art urgently
The problem of solution.
(2) technical scheme
The invention provides a kind of method that three-dimensional body conversion is driven by plane coordinates axle, including step:
S1, obtain figure and choose information, after figure is selected, three-dimensional coordinate is set up according to the figure chosen;
S2, setting alternative types, the alternative types include mobile, rotation and scale, and obtain alternative types in real time
Choose information, and the unit corresponding with alternative types is included in the three-dimensional coordinate having built up;
S3, slide block is set in each reference axis for the three-dimensional coordinate having built up, the position of the slide block is obtained
Put information converting and change the shape for choosing figure.
Preferably, in step S2:
When alternative types are mobile, the unit demarcated in the reference axis of the three-dimensional coordinate is long measure;
When alternative types are for rotating, the unit demarcated in the reference axis of the three-dimensional coordinate is angular unit;
When alternative types are for scaling, the unit demarcated in the reference axis of the three-dimensional coordinate is units of percent.
Preferably, also include in step S3:
Numerical value demarcation is carried out to the reference axis of the three-dimensional coordinate, it is wherein, when alternative types are movement and rotation, described
The numerical value demarcated in the reference axis of three-dimensional coordinate is added equal to 0, when alternative types are for scaling, the reference axis of the three-dimensional coordinate
The numerical value of upper demarcation is multiplied equal to 1.
Preferably, the slide block for arranging in each reference axis of the three-dimensional coordinate, which is located at each reference axis
Centre position.
Preferably, in the present invention, absolute distance that the slide block moved in each reference axis is obtained as choosing figure
The converted quantity of shape;
Conversion numerical value display window is set, and the numerical value of the converted quantity is obtained in real time in the conversion numerical value display window
Inside shown.
Preferably, the three-dimensional coordinate set up in step S1 is cartesian coordinate system.
Preferably, the triggering state of total each reference axis top shoe of the three-dimensional coordinate is obtained in real time;
When the slide block is triggered mobile, to choosing figure accordingly to be converted;
When the slide block is not triggered, to choosing figure to reset.
(3) beneficial effect
A kind of method that three-dimensional body conversion is driven by plane coordinates axle is embodiments provided, in the method
In, the present invention is by setting up three-dimensional system of coordinate, and completes to choose the movement of figure, rotation and scaling etc. in three-dimensional system of coordinate
Operation.Specifically, the slide block realization that the present invention passes through on drag coordinates axle chooses figure in three dimensions, on X, Y and Z axis
Movement, rotation or along X, Y and the scaling of Z-direction.In the present invention, its set up three-dimensional system of coordinate visual effect relative to
For traditional handle, physical dimension is bigger, is easy to user to be chosen on flat screen and operation, its conversion three-dimensional scenic
In graphic operation it is more easy, it is easy to accomplish.
Description of the drawings
Fig. 1 is object of the drag coordinates axle slide block in X-direction moving three dimension scene in the embodiment of the present invention;
Fig. 2 is object of the drag coordinates axle slide block in Y direction moving three dimension scene in the embodiment of the present invention;
Fig. 3 is object of the drag coordinates axle slide block in Z-direction moving three dimension scene in the embodiment of the present invention;
Fig. 4 is object of the drag coordinates axle slide block in X-direction rotated three dimensional scene in the embodiment of the present invention;
Fig. 5 is object of the drag coordinates axle slide block in Y direction rotated three dimensional scene in the embodiment of the present invention;
Fig. 6 is object of the drag coordinates axle slide block in Z-direction rotated three dimensional scene in the embodiment of the present invention;
Fig. 7 is object of the drag coordinates axle slide block in X-direction scaling three-dimensional scenic in the embodiment of the present invention;
Fig. 8 is object of the drag coordinates axle slide block in Y direction scaling three-dimensional scenic in the embodiment of the present invention;
Fig. 9 is object of the drag coordinates axle slide block in Z-direction scaling three-dimensional scenic in the embodiment of the present invention;
Figure 10 is the flow chart of the method for driving three-dimensional body conversion in the embodiment of the present invention by plane coordinates axle.
Specific embodiment
With reference to the accompanying drawings and examples embodiments of the present invention are described in further detail.Following examples are used for
The present invention is illustrated, but can not be used for limiting the scope of the present invention.
In describing the invention, unless otherwise stated, " multiple " are meant that two or more;Term " on ",
The orientation of the instruction such as D score, "left", "right", " interior ", " outward ", " front end ", " rear end ", " head ", " afterbody " or position relationship are
Based on orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description, rather than indicate or dark
Show that the device or element of indication there must be specific orientation, with specific azimuth configuration and operation therefore it is not intended that right
The restriction of the present invention.Additionally, term " first ", " second ", " the 3rd " etc. be only used for describe purpose, and it is not intended that indicate or
Hint relative importance.
In describing the invention, it should be noted that unless otherwise clearly defined and limited, term " being connected ", " company
Connect " should be interpreted broadly, for example, it may be being fixedly connected, or being detachably connected, or it is integrally connected;It can be machine
Tool connects, or electrically connects;Can be joined directly together, it is also possible to be indirectly connected to by intermediary.For this area
For those of ordinary skill, above-mentioned term concrete meaning in the present invention can be understood with concrete condition.
Refer to Fig. 1 to Figure 10, wherein, Fig. 1 be in the embodiment of the present invention drag coordinates axle slide block along X-direction movement three
Object in dimension scene;Fig. 2 is thing of the drag coordinates axle slide block in Y direction moving three dimension scene in the embodiment of the present invention
Body;Fig. 3 is object of the drag coordinates axle slide block in Z-direction moving three dimension scene in the embodiment of the present invention;Fig. 4 is the present invention
Object of the drag coordinates axle slide block in X-direction rotated three dimensional scene in embodiment;Fig. 5 is dragging seat in the embodiment of the present invention
Object of the parameter slide block in Y direction rotated three dimensional scene;Fig. 6 be in the embodiment of the present invention drag coordinates axle slide block along Z axis
Object in the rotated three dimensional scene of direction;Fig. 7 is that drag coordinates axle slide block scales three dimensional field along X-direction in the embodiment of the present invention
Object in scape;Fig. 8 is object of the drag coordinates axle slide block in Y direction scaling three-dimensional scenic in the embodiment of the present invention;Fig. 9
It is object of the drag coordinates axle slide block in Z-direction scaling three-dimensional scenic in the embodiment of the present invention;Figure 10 is enforcement of the present invention
The flow chart for driving the method for three-dimensional body conversion in example by plane coordinates axle.
Embodiment one
With spheroid as choppy, after choosing the spheroid, a cartesian coordinate system is set up.
The select button of alternative types is set in window side, select button includes three, respectively move, rotate with
And zoom button.After one of button is triggered, you can the spheroid to choosing carries out corresponding operation.
In elected after movable button, each reference axis for long measure in cartesian coordinate system.
A slide block is provided with each reference axis, and slide block is moved in reference axis, its slide block movement
Absolute distance is needs the conversion numerical value for carrying out in corresponding reference axis to the spheroid.
When slide block, in X-axis, mobile two units, i.e. spheroid integrally will move two units along X-axis, so as to complete
Moving operation.
Moving operation in other reference axis is same as described above, and here is not repeated.
Embodiment two
With square as choppy, after choosing the square, a cartesian coordinate system is set up.
The select button of alternative types is set in window side, select button includes three, respectively move, rotate with
And zoom button.After one of button is triggered, you can the square to choosing carries out corresponding operation.
In elected after rotary knob, each reference axis for angular unit in cartesian coordinate system.
Here it should be noted that:In a preferred embodiment of the invention, the least unit of the angular unit is according to thing
The maximum angle of body rotation is set, i.e., least unit cannot be greater than 1st/50th of the maximum angle of object rotation.Lift
Example explanation:When the angle of design requirement object rotation is 100 ° to the maximum, then the angle least unit demarcated in reference axis is
2°.It is of course also possible to can also set less numerical value according to the restriction of above-mentioned least unit, such as the angle of above-mentioned demarcation is most
Subsection can also be 1 °.In the case of without special setting, in rotation transformation, in three-dimensional coordinate, each sits present invention acquiescence
The two ends extreme value of parameter is 360 °, and it is 1 ° to rotate the least unit demarcated.
A slide block is provided with each reference axis, and slide block is moved in reference axis, its slide block movement
Absolute distance is needs the conversion numerical value for carrying out in corresponding reference axis to the square.
The pivot rule of square is:The reference axis being located with mobile slide block as Pivot axle, in the rotation
Heart axle is rotated.
Here is limited:When slide block is moved to positive, square is rotated forward;When slide block is moved to negative direction
When, square counter-rotating.
Rotation process in other reference axis is same as described above, and here is not repeated.
Embodiment three
With spheroid as choppy, after choosing the spheroid, a cartesian coordinate system is set up.
The select button of alternative types is set in window side, select button includes three, respectively move, rotate with
And zoom button.After one of button is triggered, you can the spheroid to choosing carries out corresponding operation.
In elected after zoom button, each reference axis for units of percent in cartesian coordinate system.
A slide block is provided with each reference axis, and slide block is moved in reference axis, its slide block movement
Absolute distance is needs the conversion numerical value for carrying out in corresponding reference axis to the spheroid.
When slide block moves two units, i.e. shape invariance of the spheroid in Y-axis and Z axis in X-axis, but can be along X
Direction of principal axis is stretched or is compressed, so as to complete zoom operations.
Zoom operations in other reference axis are same as described above, and here is not repeated.
It should be noted that in the present invention:
When alternative types are mobile, the unit demarcated in the reference axis of three-dimensional coordinate is long measure;
When alternative types are for rotating, the unit demarcated in the reference axis of three-dimensional coordinate is angular unit;
When alternative types are for scaling, the unit demarcated in the reference axis of three-dimensional coordinate is units of percent.
For the ease of the movement of slide block, after three-dimensional coordinate is established, the equal position of slide block arranged in each reference axis
On the centre position of reference axis.
Numerical value demarcation is carried out to the reference axis of three-dimensional coordinate, wherein, when alternative types are movement and rotation, three-dimensional coordinate
Reference axis on the numerical value demarcated be added equal to 0, when alternative types for scaling when, the numerical value demarcated in the reference axis of three-dimensional coordinate
It is multiplied equal to 1.
In order to more intuitively be observed to converting numerical value, following operation is also included in the present invention:
The absolute distance that acquisition slide block is moved in each reference axis is used as the converted quantity for choosing figure;Conversion numerical value is set
Display window, and the numerical value of acquisition converted quantity is shown in conversion numerical value display window in real time.
Certainly, in the present invention, the numerical value display window also function with Data Enter is converted, for example:To choosing figure
Shape carry out X-direction it is mobile when, choose figure first, it is then determined that alternative types for movement, at this time, it may be necessary to move a cursor to
Slide position in X-axis goes out to click on the slide block, now, ejects conversion numerical value display window, after directly entering numerical value, you can complete
Choose the conversion of figure.
The present invention is also equipped with reset function:The triggering state of total each reference axis top shoe of three-dimensional coordinate is obtained in real time;When
When slide block is triggered mobile, to choosing figure accordingly to be converted;It is when slide block is not triggered, multiple to choosing figure to carry out
Position.
Embodiments of the invention in order to example and description for the sake of and be given, and be not exhaustively or by this
It is bright to be limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Choosing
It is, for the principle and practical application that more preferably illustrate the present invention, and to make one of ordinary skill in the art to select and describe embodiment
It will be appreciated that the present invention is so as to designing the various embodiments with various modifications for being suitable to special-purpose.
Claims (7)
1. it is a kind of by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that include:
Step one, obtain figure and choose information, after figure is selected, three-dimensional coordinate is set up according to the figure chosen;
Step 2, setting alternative types, the alternative types include mobile, rotation and scale, and obtain alternative types in real time
Choose information, and the unit corresponding with alternative types is included in the three-dimensional coordinate having built up;
Step 3, slide block is set in each reference axis for the three-dimensional coordinate having built up, the position of the slide block is obtained
Put information converting and change the shape for choosing figure.
2. it is according to claim 1 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
In the step 2:
When alternative types are mobile, the unit demarcated in the reference axis of the three-dimensional coordinate is long measure;
When alternative types are for rotating, the unit demarcated in the reference axis of the three-dimensional coordinate is angular unit;
When alternative types are for scaling, the unit demarcated in the reference axis of the three-dimensional coordinate is units of percent.
3. it is according to claim 2 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
Also include in the step 3:
Numerical value demarcation is carried out to the reference axis of the three-dimensional coordinate, wherein, when alternative types are movement and rotation, the three-dimensional
The numerical value demarcated in the reference axis of coordinate is added equal to 0, when alternative types are for scaling, the reference axis subscript of the three-dimensional coordinate
Fixed numerical value is multiplied equal to 1.
4. it is according to claim 3 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
The slide block arranged in each reference axis of the three-dimensional coordinate, which is located at the centre position of each reference axis.
5. it is according to claim 4 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
Absolute distance that the slide block moved in each reference axis is obtained as the converted quantity for choosing figure;
Arrange conversion numerical value display window, and obtain the numerical value of the converted quantity in real time to enter in the conversion numerical value display window
Row shows.
6. it is according to claim 5 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
The three-dimensional coordinate set up in the step one is cartesian coordinate system.
7. it is according to claim 6 by plane coordinates axle drive three-dimensional body conversion method, it is characterised in that
The triggering state of total each reference axis top shoe of the three-dimensional coordinate is obtained in real time;
When the slide block is triggered mobile, to choosing figure accordingly to be converted;
When the slide block is not triggered, to choosing figure to reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610895418.2A CN106530224A (en) | 2016-10-14 | 2016-10-14 | Method for driving 3D object transformation via planar coordinate axes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610895418.2A CN106530224A (en) | 2016-10-14 | 2016-10-14 | Method for driving 3D object transformation via planar coordinate axes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106530224A true CN106530224A (en) | 2017-03-22 |
Family
ID=58331684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610895418.2A Pending CN106530224A (en) | 2016-10-14 | 2016-10-14 | Method for driving 3D object transformation via planar coordinate axes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106530224A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112363652A (en) * | 2020-11-27 | 2021-02-12 | 北京城市网邻信息技术有限公司 | Information processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080204548A1 (en) * | 2006-10-27 | 2008-08-28 | Emine Goulanian | Switchable optical imaging system and related 3d/2d image switchable apparatus |
CN101540062A (en) * | 2009-02-10 | 2009-09-23 | 朱一宁 | Method for implementing interactive real-time browsing processing on computer three-dimensional data by using visual geometry column |
KR101323785B1 (en) * | 2012-10-16 | 2013-10-31 | 숭실대학교산학협력단 | Device for measuring 3-dimensional rotation angle and method for measuring 3-dimensional rotation angle |
CN103492972A (en) * | 2011-04-21 | 2014-01-01 | 金哲宇 | Universal motion controller in which a 3D movement and a rotational input are possible |
CN104252561A (en) * | 2014-09-05 | 2014-12-31 | 北京尔宜居科技有限责任公司 | Method for simultaneously displaying 2D (two-dimensional) images and 3D (three-dimensional) images of same decoration scenes in single interface |
-
2016
- 2016-10-14 CN CN201610895418.2A patent/CN106530224A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080204548A1 (en) * | 2006-10-27 | 2008-08-28 | Emine Goulanian | Switchable optical imaging system and related 3d/2d image switchable apparatus |
CN101540062A (en) * | 2009-02-10 | 2009-09-23 | 朱一宁 | Method for implementing interactive real-time browsing processing on computer three-dimensional data by using visual geometry column |
CN103492972A (en) * | 2011-04-21 | 2014-01-01 | 金哲宇 | Universal motion controller in which a 3D movement and a rotational input are possible |
KR101323785B1 (en) * | 2012-10-16 | 2013-10-31 | 숭실대학교산학협력단 | Device for measuring 3-dimensional rotation angle and method for measuring 3-dimensional rotation angle |
CN104252561A (en) * | 2014-09-05 | 2014-12-31 | 北京尔宜居科技有限责任公司 | Method for simultaneously displaying 2D (two-dimensional) images and 3D (three-dimensional) images of same decoration scenes in single interface |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112363652A (en) * | 2020-11-27 | 2021-02-12 | 北京城市网邻信息技术有限公司 | Information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11687230B2 (en) | Manipulating 3D virtual objects using hand-held controllers | |
US11543933B2 (en) | Manipulating virtual environment using non-instrumented physical object | |
AU2002232172B2 (en) | Animation creation program | |
JP4796194B1 (en) | Cursor display method and cursor display program | |
US9035877B2 (en) | 3D computer cursor | |
US20150346981A1 (en) | Slider controlling visibility of objects in a 3d space | |
CA2957383A1 (en) | System and method for spatial interaction for viewing and manipulating off-screen content | |
CN103890704A (en) | System and method for constrained manipulations of 3d objects by multitouch inputs | |
Smith et al. | Digital foam interaction techniques for 3D modeling | |
US10713853B2 (en) | Automatically grouping objects in three-dimensional graphical space | |
CN103492972A (en) | Universal motion controller in which a 3D movement and a rotational input are possible | |
CN106484234A (en) | A kind of three-dimensional modeling graphic processing method | |
EP3340023A1 (en) | Fast manipulation of objects in a three-dimensional scene | |
CN101604456A (en) | Tooth shifter in the area of computer aided orthodontic | |
CN104866121A (en) | Drawing system and drawing method for three-dimensional model | |
CN105103112A (en) | Apparatus and method for manipulating the orientation of object on display device | |
CN103927024B (en) | A kind of command sets extension method based on nib Yu a body track in pen based user interface | |
JP2007087324A (en) | Touch panel device | |
CN115328304A (en) | 2D-3D fused virtual reality interaction method and device | |
CN106530224A (en) | Method for driving 3D object transformation via planar coordinate axes | |
CN100576161C (en) | A kind of cake-shape menu selection methodbased based on pen obliquity information | |
CN205910672U (en) | 3D mouse and 3D mouse subassembly | |
CN106528130B (en) | A kind of Edit button adaptation method and device | |
CN109308741B (en) | Meta 2-based natural interaction handicraft creative design system | |
TW200807283A (en) | Multidimensional input device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |