Nothing Special   »   [go: up one dir, main page]

CN104424663B - Three-dimensional Graphics System and recording medium - Google Patents

Three-dimensional Graphics System and recording medium Download PDF

Info

Publication number
CN104424663B
CN104424663B CN201410301666.0A CN201410301666A CN104424663B CN 104424663 B CN104424663 B CN 104424663B CN 201410301666 A CN201410301666 A CN 201410301666A CN 104424663 B CN104424663 B CN 104424663B
Authority
CN
China
Prior art keywords
picture
normal
vector
detection
graph data
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.)
Active
Application number
CN201410301666.0A
Other languages
Chinese (zh)
Other versions
CN104424663A (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.)
YATAIDA CO Ltd
Original Assignee
YATAIDA 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 YATAIDA CO Ltd filed Critical YATAIDA CO Ltd
Publication of CN104424663A publication Critical patent/CN104424663A/en
Application granted granted Critical
Publication of CN104424663B publication Critical patent/CN104424663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of three-dimensional Graphics System and its program, can reach the state for facing desired face from strabismus state with easy operation.Three-dimensional Graphics System has the tool of facing, and the certain surface for the object for including in graph data is shown according to input operation faces picture, and the tool of facing has: operation testing agency, content, amount, direction or the coordinate of detection input operation;Object detection mechanism, the determining picture normal with when carrying out input operation intersects or close object;Specific vector of the intersecting angle of oblique angle decision mechanism, detection and the picture normal in input operation within predetermined angular;And rotating mechanism, according to operation testing agency detection information make include graph data editor space relative to sight rotation, and, in the case where detecting specific vector at the end of inputting operation, make to include that the editor space of graph data is rotated relative to sight so that the specific vector and picture normal parallel.

Description

Three-dimensional Graphics System and recording medium
Technical field
The present invention relates to the Graphics System and its program of the three-dimensional editing and processing (mapping) for carrying out figure.
Background technique
Up to the present, for three-dimensional Graphics System, providing can be such that X-axis, Y-axis or Z axis rotates and be compiled Collect the Graphics System of operation.
Previous three-dimensional Graphics System is the direction that can change the object that mapping obtains by mouse drag, key operation Graphics System, display direction be strabismus, the front elevation from XYZ axis direction, elevation.
Wherein, there is also following Graphics Systems: strabismus can carry out its angle tune by continuing mouse drag, key operation Straightening reaches expected direction and obtains, and facing for the front elevation, elevation from XYZ axis direction can be by determining Key input and obtain (for example, referring to following patent documents).
Patent document 1: Japanese Unexamined Patent Publication 07-105263 bulletin
Patent document 2: Japanese Unexamined Patent Publication 2002-74400 bulletin
However, there are following problems for the existing method headed by the technology that the bulletin is recorded: under strabismus state Become in the case where facing state during editor, it has to stop drag operation, pressing to be assigned becomes facing state Function button, in order to become the state of facing of target from current strabismus state, operator must oneself judgment object Normal (U-V plane, V-W plane, the W-U plane of which of W axis, U axis, V axis in local coordinate system near picture Which of (hereinafter referred to as " datum level ") near picture) it is operated.
Specifically, in order to show building, make its rotation so as to face right side from front, it is necessary to dragging rotation So that U axis direction front.Although operation in this way, picture is substantially vertical with U axis, reaches close to the shape for facing V-W plane State, however, it is accurately vertical due to being difficult to reach, it also can be appreciated that the face for being not intended to see sometimes.
Therefore, although can be shown there is also the key input for showing the function for the image for facing nearest face by starting The CAD of image is completely faced, but, it is difficult to recognize which being made of U axis, V axis or W axis the face watched attentively be at the very start A face is frequently present of the case where needs repeatedly re-start key input.
Particularly, in the case where wanting to face face inclined relative to the datum level, there are following problems: must make The rotation angle of drag operation carries out cumbersome rotation process for each axis as unit of the angle of such as 90 degree of approximate number.
Summary of the invention
The present invention is exactly to complete in view of the foregoing, and its purpose is to provide a kind of three-dimensional Graphics System and its journeys Sequence can reach the state for facing desired face with easy operation from strabismus state.
Three-dimensional Graphics System of the invention completed to solve the above problems, combination are able to carry out computer disposal Graph data is simultaneously mapped, which is characterized in that is had the tool of facing, is included to show in graph data according to input operation The certain surface of object faces picture, and the tool of facing has: operation testing agency, content, the amount, side of detection input operation To or coordinate;Object detection mechanism, the determining picture normal with when carrying out the input operation intersects or close object;Oblique angle Decision mechanism inputs the institute in operating with described from detecting in the vector that the object determined by the object detection mechanism has State specific vector of the intersecting angle of picture normal within predetermined angular;And rotating mechanism, according to the operation detection machine The detection information of structure make include the graph data editor space relative to sight rotate, also, the input operation knot In the case where detecting the specific vector when beam, make include the graph data editor space relative to sight rotate so that The specific vector and the picture normal parallel.
Three-dimensional plotting program of the invention completed to solve the above problems, combination are able to carry out computer disposal Graph data is simultaneously mapped, which is characterized in that computer is made to be able to carry out the graph data of computer disposal simultaneously as combination The three-dimensional Graphics System mapped plays a role, and the three-dimensional Graphics System has the tool of facing, and is shown according to input operation The certain surface for the object for including in diagram graphic data faces picture, and the tool of facing has: operation testing agency is detected defeated Enter content, amount, direction or the coordinate of operation;Object detection mechanism is determined and is handed over picture normal when carrying out the input operation Fork or close object;Oblique angle decision mechanism is detected from the vector that the object determined by the object detection mechanism has With specific vector of the intersecting angle for inputting the picture normal in operation within predetermined angular;And whirler Structure, according to it is described operation testing agency detection information make include the graph data editor space relative to sight rotation, Also, the input operation at the end of detect the specific vector in the case where, make include the graph data editor Space is rotated relative to sight so that the specific vector and the picture normal parallel.
It is preferably configured as, as the three-dimensional Graphics System or the rotating mechanism of the three-dimensional plotting program, is also equipped with: tiltedly Angle decision mechanism, from detection in the vector that the object determined by the object detection mechanism has and input operation Specific vector of the intersecting angle of picture reference axis within predetermined angular;And rotating mechanism, make to include the graph data Editor space using the picture normal as axis rotate so that the local coordinate axis of the object determined by the object detection mechanism Or reality reference axis is parallel with the picture reference axis.
In addition, the picture normal refers to the method for the picture by the position by the mobile cursor of the input operation The normal (central normal) of line (instruction vertical line) or the central picture by editing pictures.
It, can be using real reference axis or local coordinate axis, the face normal, material of the object as the specific vector Axis or steel bar arrangement direction etc..The reasons why being not limited to the face normal is, for example, facing the building in heeling condition When the constituent element of component, using the axis of the local coordinate of the object or real coordinate as specific vector, exists and be not only intended to see this Constituent element it is intrinsic face picture, and it is desirable that from the case where the state being assembled into from a front surface and a side surface in building element.
It is operated as the input, the drag operation using mouse etc., shuttle controller (jog- can be enumerated ) etc. shuttle operation.
As described above, three-dimensional Graphics System according to the present invention and its program, include that should show in display picture by making The editor space of the object shown is rotated in the form of being adsorbed in specific vector, can be adjusted all to what is mapped in editor space The sight of object and its relevant institute's directed quantity.
For example, Z axis, X-axis or the Y of real coordinate system can be realized only by the operation of the beginning and end of specific operation Image is faced in any one direction of axis, even the front view of the W axis of local coordinate system, any one direction of U axis or V axis Picture, also can only by the beginning of the specific operations such as dragging, continue in and the operation that terminates realize.
Specifically, even the normal direction in each face having to the object of editor, material axis direction or reinforcing bar Arranged direction faces image, also can only be showed by the operation of the specific operation and end.
Moreover, user close the fact that face state, user in the specific operation can be notified by predetermined output The angle threshold for issuing the predetermined output can suitably be specified.
Detailed description of the invention
Fig. 1 is the process for showing an example of the processing for facing tool in three-dimensional Graphics System and its program of the invention Figure.
Fig. 2 is to show in three-dimensional Graphics System and its program of the invention to face carrying out by input operation for tool The flow chart of an example of processing.
Fig. 3 is the processing for showing the variation along with tow flag in three-dimensional Graphics System and its program of the invention The flow chart of an example of distribution.
Fig. 4 is to show the target rotation for facing tool in three-dimensional Graphics System and its program of the invention at (A): dragging When beginning;(B): when dragging continues;And the flow chart of an example of the processing carried out at the end of (C) dragging.
Fig. 5 is to illustrate that the movement of the target rotation for facing tool in three-dimensional Graphics System and its program of the invention is said Bright figure.
Fig. 6 is to show in three-dimensional Graphics System and its program of the invention to face object at (A): when dragging starts;With And (B): the flow chart of an example for the processing that dragging carries out when continuing.
Fig. 7 is the place for facing object and carrying out at the end of dragging shown in three-dimensional Graphics System and its program of the invention The flow chart of an example of reason.
Fig. 8 is the explanation for showing an example of processing of the display object in three-dimensional Graphics System and its program of the invention Figure.
Fig. 9 is an example for showing the solid for facing tool in three-dimensional Graphics System and its program of the invention and facing processing Explanatory diagram.
Figure 10 is that the level for facing tool shown in three-dimensional Graphics System and its program of the invention faces the one of processing The explanatory diagram of example.
Figure 11 is the picture normal shown in three-dimensional Graphics System and its program of the invention and is shown in editing pictures Existing object relationship an example explanatory diagram.
Figure 12 is the picture normal shown in three-dimensional Graphics System and its program of the invention and is shown in editing pictures Existing object and real coordinate relationship an example explanatory diagram.
Figure 13 is the picture normal shown in three-dimensional Graphics System and its program of the invention and is shown in editing pictures Intersection object intersection relation of plane an example explanatory diagram.
Figure 14 is the explanatory diagram for showing an example of hardware configuration of three-dimensional Graphics System of the invention.
Figure 15 be show in three-dimensional Graphics System and its program of the invention facing tool use subject it is interior The explanatory diagram of an example of appearance.
Figure 16 is the rotation center mark faced in object shown in three-dimensional Graphics System and its program of the invention Flash the flow chart of an example of processing.
Figure 17 is the flow chart for showing an example of the data processing passage in three-dimensional Graphics System and its program of the invention.
Label declaration
1: input unit;2: control device;3: output device;4: recording device.
Specific embodiment
Hereinafter, showing the attached drawing three-dimensional Graphics System (hereinafter referred to as Graphics System) that simultaneously the present invention will be described in detail and its journey A kind of embodiment of sequence.
Example shown in Figure 14 is that graph data and the progress of computer disposal are able to carry out by computer system combination The Graphics System of mapping consists of and has input unit 1, control device 2, output device 3 and recording device 4.
The input unit 1 is the number that input control device can be read by the operation of user such as keyboard, indicating equipment According to device.
The control device 2 is that installation makes computer in the hardware including CPU, memory and input/output interface Three-dimensional plotting program (the hereinafter referred to as plotting program that system plays a role as Graphics System.) control device.
The output device 3 is the display equipment that edited figure is shown in a manner of it can observe, on paper The printer etc. of printing.
Recording device 4 is the various recording mediums such as hard disk, USB storage.
The example of the computer system is, by above structure, starts application program (the mapping journey saved in the hard disk Sequence) play the function as Graphics System.
The graph data of editor by reading to the recording device 4 being made of various recording mediums, by the input The operation of device 1 is to carry out input or preservation relative to Graphics System.
The editing and processing of the graph data is using the tool (function) being equipped in the Graphics System and by input unit 1 Obtained position data or material data etc. carry out.
In order to carry out editing and processing as described above, the Graphics System has: will be provided with single or relevant multiple behaviour The data (tool data) being composed with making multiple tool box hierarchicals of project;Distribute to the specific letter of the operation item Several data (function data);Selection mechanism (hereinafter referred to as " is clicked " or " is added by the input operation to operation item Pressure "), the tool box of the next level of the operation item is distributed in display or the specific of the operation item is distributed in starting Function;Arithmetical organ, the operation needed for being executed using the function of starting;And tool management authority, pass through the operation item New selection, release the selection of the operation item of non-selected same level, and release as the operation item released The selection and display in tool box existing for the next level.
The tool function obtains the edit operation generation for passing through user according to its process content from the input unit 1 Parameter etc. of the various data as the tool function, passes through the calculating machine needed for the editor such as position data, material data Structure implements the scheduled calculation process of the tool function and obtained graph data is saved in memory or recording device 4.
Also, tool has coordinate measurement mechanism that this example had face, operation testing agency, object detection mechanism, tiltedly Angle decision mechanism and rotating mechanism, with can only by dragging etc. specific operations realize from make map space change in coordinate axis direction, should Image is faced in the observations such as the normal direction in each face, material axis direction possessed by object or steel bar arrangement direction.
In order to make it is described face tool and play a role, in this example embodiment, processing is belonging respectively to real coordinate system, mouse coordinates system Four kinds of coordinates of (coordinate of input operation) system, picture coordinate system and local coordinate system.
The coordinate (real coordinate) of the reality coordinate system refers to the three-dimensional for entirely making map space possessed by the Graphics System Orthogonal coordinates (X, Y, Z).
The position of the origin of other coordinate systems, size and the real coordinate system are inconsistent, and other than the real coordinate system Each coordinate system it is also inconsistent each other.
The coordinate of the mouse coordinates system, which is referred to, has fixation by what the input operation of the input equipments such as mouse was formed Resolution ratio plane coordinate (V, H).
The coordinate of the picture coordinate system refer to as the viewpoint present in the real coordinate space, direction of visual lines and Upward vector determines, with the front surface for the view vertebra platform (View Frustum) divided by the outer rim of the editing pictures of display equipment There is the coordinate (x, y, z) of the three-dimensional orthogonal coordinate system in the space of depth as x-y datum level, and in the direction of visual lines, with Normal (z-axis) of the viewpoint as origin, using sight as the datum level (x-y plane) existing for the real coordinate space.
That is, real coordinate system and picture coordinate system can observe real coordinate system space using decision, (it is empty that in this case, it is editors Between) the positive inverse matrix of " sight mobile spin matrix " of sight mutually convert.
In addition, matrix used in above-mentioned matrix and the following description is affine transformation matrix.
The coordinate of the local coordinate system refers to the intrinsic material axis in the space separated with each object, steel bar arrangement side To the coordinate of the equal three-dimensional orthogonal coordinate system for axis.
<coordinate measurement mechanism>
The coordinate measurement mechanism from the position data detect by using the input units such as mouse input operation and The cursor of variation shown in editing pictures is (for example, referring to Fig. 5 (A).) picture coordinate.
<operation testing agency>
Content, amount or the direction that the operation testing agency passes through the variation detection input operation of the picture coordinate.
For example, the releasing of input operation (under the point in input unit 1 or pressurization or key input etc.) and input operation (in input unit 1, release or pressurization releasing or key input etc.) and the position seat for carrying out the input operation and its releasing The variation of mark or position coordinates or the operation direction being derived there etc. are its test objects.
<mouse object>
Mouse object is one of object that the function data is constituted in this example, is had the viewpoint (cursor etc.) Position coordinates the transformation matrix of the picture coordinate system is converted into from the mouse coordinates system, receive by the coordinate measurement machine Specific operation information (including the position of the input operation of structure and the mouse (input unit 1) that detects of the operation testing agency Set coordinate), and change tow flag as described below.
The mouse object of the example carries out the processing of the internal data of the object using the mouse coordinates system, by the mouse When the processing result of mark object is transmitted to other objects, the processing result is transformed to real coordinate system.
The mouse object in the example becomes the input operation of mouse by the transformation matrix from mouse coordinates system It is changed to picture coordinate system, starts the picture coordinate of the cursor position of the input operation by coordinate measurement mechanism detection, It saves the picture coordinate as starting point coordinate P0 (referring to Fig. 2 and Fig. 5 (A)), the input operation of mouse continues and its position Set variation, concomitantly, based on from the position coordinates in the variation that the coordinate measurement mechanism obtains pass through the calculating machine Structure successively calculates the distance L to the starting point coordinate and is saved, when detecting the distance is to separate predetermined distance or more Tow flag is set to ON (referring to Fig. 2 (B)), utilizes the releasing of the input operation of the mouse obtained from the operation testing agency Detection, the picture coordinate of the position is detected by the coordinate measurement mechanism and is saved, tow flag is set to OFF (referring to Fig. 2 (C)).
<object detection mechanism>
The object detection mechanism (hereinafter referred to as " is stepped on from the object registered using the edit operation as graph data Note object ") object (intersecting object) (1 or Figure 13 referring to Fig.1) intersected with picture normal is detected, it can not detect the intersection object In the case where, editor space (is in this example embodiment real coordinate system space, but is also possible to as needed relative to real coordinate Being space, there are expected inclinations, other mobile three-dimensional space) datum level regard object as and detect and the datum level The real coordinate (referring to Fig. 8 and Figure 12) in crosspoint.
The object detection mechanism is in the editing pictures edited, first by the picture normal with the picture Areal coordinate definition, is transformed to real coordinate by transformation matrix for the track of the picture normal, passes through the position with the registration object Coordinate (real coordinate) is compared, the object of detection and the track cross of the picture normal (referring to Fig. 8).
In addition, being also possible to carrying out in the case where not detecting the object with the track cross of the picture normal Before the processing for regarding editor's datum level as object, to relative to the picture normal at a distance near also with vacation The picture normal circular scan thought carries out the place of object and intersection point at this time that detection is intersected with the imaginary picture normal Reason.
The datum level refers to the origin by real coordinate system, normal be directed toward X-axis, Y-axis, Z axis three faces face.? In the case that the picture normal intersects with multiple datum levels, by the point and X-axis, Y-axis, Z axis side nearest with the editing pictures It is come out to as vector detection.
Picture normal in this example is the central normal, is to be positioned against the editor from the center of the editing pictures The vector of the depth direction of picture.The vector is by its starting point coordinate (x0, y0, z0) and terminal point coordinate (x0, y0 ,-zn) composition The picture coordinate system indicate, and converted as by the transformation matrix inverse matrix of spin matrix (sight mobile) (referring to Fig.1 2: display object) is used for the real coordinate system vector of real coordinate.
The mobile spin matrix of the sight is for will be using the object intersection point as the sight at viewpoint (center of rotation) Matrix of the rotary motion (or the reverse rotation in the editor space is mobile) as display direction reflection, by with will be in reality The projection matrix of the project objects of coordinate space to editing pictures is multiplied to generate projection matrix Ms.
The object detection mechanism in the example faces tool by selection mechanism selection, and the tow flag is ON, and determine the face (cross facet) of the object (intersecting object) comprising carrying out the center of the editing pictures when input operates (referring to Fig. 8 and Figure 13).
Moreover, in the case where picture normal (sight) penetrates through (intersection) multiple objects, it will be closer to the editing pictures Object (intersect object) handled as object, using the intersection point for intersecting object as the center of the rotation.
The picture normal utilizes the display illustrated below when determining whether to intersect with compiled existing object The processing (referring to Fig. 8 (A)) of object, judge the picture normal whether the single triangle with the surface for constituting the object Or the processing (judgement processing) (5 (A) referring to Fig.1) that any one for the multiple triangle sets being in contact with each other is intersected.
There are (referring to Fig.1 3) in the form of these three in the vertex of a triangle, on line, on face in the intersection point, described Intersection point be present on vertex or on line in the case where, which is contained in multiple triangles, thus using each triangle method The average vector of line is as the face normal (object normal), in the case where the intersection point is present on the face, using packet The normal of single triangle containing the intersection point is as the face normal.
For with thickness and incidence point (close to the side of the starting point of picture normal) and eye point are (far from picture normal The side of starting point) different object, it is used incidence point as the intersection point.
The intersection object is being determined as described above, determines intersect with the picture normal three by the arithmetical organ In the case where angular, intersection point (object intersection point) and intersection point on the triangle (cross facet) are exported using the arithmetical organ The normal (object normal: the normal by the object intersection point in the face comprising the object intersection point) at place, and from subject Detection using intersect the three-dimensional local coordinate system (U, V, W) that object has as the structure of object each axis (reference Fig. 9 and Figure 10), Steel bar arrangement direction or material axis direction, and it is stored in memory etc..
In addition, in this example embodiment, using the central normal as picture normal, but the instruction vertical line can also be made For picture normal.
<subject>
Subject is one of the object for constituting the graph data, is the coordinate etc. with object substantially, for The request for constituting the object of various function datas provides required information, the more new information of the processing result based on various function datas Content object.
At this point, longitudinal steel that the material axis being had according to the object, the steel bar arrangement information having from the object obtain Muscle, transverse steel direction calculate the vector closest to the object intersection point by the arithmetical organ, and according to other objects Request return to above-mentioned intersection point, vector, or update its content.
The subject in the example keeps the material axis of the position coordinates (local coordinate) of object, object (to show The local coordinate in direction etc. out), the steel bar arrangement information (local coordinate for showing direction etc.) of object, by the position of the object Coordinate is real transformation of coordinates matrix from transformation of local coordinates or the position coordinates of the object is transformed to office from real coordinate Portion's transformation of coordinates matrix.
In this example embodiment, by object be defined as having by single or multiple triangulars at surface object (referring to scheming 15 (A)), the triangle to adjoin one another (triangle of common edge) group is registered as subject as an object, thus bright The outer rim (full surface) of the true object.
The position coordinates of the object are the apex coordinates on the surface being made of the triangle sets.
The material axis of the object be with the linear of the sections such as beam, column shape and the object of linear input, it is independent being formed There is also can not consider material axis in the object (face component) in the face of the buildings such as basis, floor, wall.
The steel bar arrangement information of the object is and each component at the time of inputting isolated footing, floor, the face components such as wall The steel bar arrangement direction (referring to Fig.1 5) of reinforcing bar that accordingly sets of specification.
<oblique angle decision mechanism>
The intersecting angle θ of a pair of of the vector of the oblique angle decision mechanism detection as a purpose, and judge whether it is providing Within angle.
By the oblique angle decision mechanism, such as in drag operation, be able to detect the graph data from by the object The friendship of characteristic vector (described object normal etc.) and the picture normal that the object (intersecting object) that body testing agency determines generates Angle, θ is pitched, and is able to detect (hereinafter referred to as " the approximation ") specific vector of intersecting angle θ within predetermined angular.
The processing (specific vector detection processing) for detecting the specific vector is to calculate the picture by the arithmetical organ The inner product of face normal and specific vector undetermined, and evaluate whether the value is faced in approximate extents etc. defined.
<rotating mechanism>
The tool of facing has rotating mechanism, and the rotating mechanism is operated by the input, keeps the intersection object vertical Body rotates (solid faces processing), so that the one side and the editing pictures of the intersection object detected by the object detection mechanism In parallel, also, the intersection object is made to rotate horizontally (level faces processing) with the picture normal axis, so that the intersection object The vector having is parallel with the longitudinal axis of picture coordinate system or horizontal axis.
Rotating mechanism in the example has target rotation, faces object, display object.
The target rotation and display object carry out the processing of the internal data of each object with real coordinate system.The rotation pair In the processing of elephant from the picture coordinate system to the coordinate transform of the real coordinate system be the target rotation from the display object It obtains the inverse matrix of the mobile spin matrix of the sight and carries out.
The processing faced object and carry out the internal data of the object with the picture coordinate system.The object faced It from the real coordinate system to the coordinate transform of the picture coordinate system is that this is faced object and obtains from the display object in processing For this transformation matrix (sight mobile spin matrix) and carry out.
In the processing of each object that tool is faced described in the composition, the transmitting-receiving of the data including graph data is with duplication What form carried out, for example, object Vector Groups (the material axis direction of object, local coordinate axis, the surface direction and solid of each object Directed quantity) these numbers for having to existing graph data, other objects for having edited in inter-process such as deformation, movement According to not influencing.
In facing in tool for the example, each object is when carrying out the transmitting-receiving of the internal data with other objects, it is necessary to It is received and dispatched with the data of real coordinate system.That is, the object handled other than the data of real coordinate system is defeated to other objects When out, it is necessary to processing from the data of other coordinate systems to the data of real coordinate system that convert from is carried out in the object, from other When object inputs, it is necessary to become in the object from the data of real coordinate system to the data of the coordinate system for the processing being suitble in the object Change (referring to Fig.1 7).In Figure 17, symbol zero (circle of dotted line) indicate from processing from mouse coordinates to real coordinate transform (according to It is transformed to picture coordinate first with the difference of picture coordinate possessed by mouse obj and is transformed to real coordinate again), zero (click and sweep of symbol The circle of line) processing (use sight mobile spin matrix) of the expression from real coordinate to picture coordinate transform, symbol zero be (solid line Circle) processing (use the inverse matrix of sight mobile spin matrix) of the expression from picture coordinate to real coordinate transform.
In addition, the transformation from the mouse coordinates system to picture coordinate system is carried out using following matrix: by the mouse pair The transformation matrix and sitting in fact from described from the display object acquirement that slave mouse coordinates system as in converts to picture coordinate system Be multiplied the transformation matrix (the mobile spin matrix of sight) that mark system converts to the picture coordinate system obtained matrix.
<target rotation>
The target rotation is one of the object for constituting the function data, detects the dragging of the mouse object The variation of mark is judged as " dragging " when OFF variation is ON in tow flag, keeps sentencing when ON is constant in tow flag Break as " in dragging ", is judged as " dragging terminates " when it is OFF that tow flag is from ON variation, according to its judgement, as described below To display object or face object notice operation information (referring to Fig. 4 (A)).
[dragging starts]
That is, the target rotation from the mouse object receive tow flag from OFF variation be ON notice (" dragging is opened Begin "), the position coordinates for intersecting the crosspoint (object intersection point) on object, the intersection are obtained from the display object Normal (object normal), the intersection object in face say the local coordinate that the characteristic vector for including, the intersection object have reference axis (with Under, be denoted as " dragging start information ") (referring to Fig. 4 (A)), and will face described in these information notice object (" dragging starts " Notice).
In addition, showing that the processing of the rotation center mark is in the example, faces in object at this, handed over the object Make balling-up centered on point, the data of the ball are transformed to real coordinate and notify the display object.By the rotation center mark Show that object eliminates the ball described in the processing notification of cancellation.
[in dragging]
Moreover, the target rotation is received from the mouse object indicates that tow flag persistently maintains the notice of the state of ON (" in dragging "), according to the associated amount of movement (referring to Fig. 5) relative to starting point coordinate of the drag operation, utilize the behaviour Make rotary shaft (the stereo rotating axis of postscript) and rotation amount (solid behaviour of testing agency's export by the center of the rotation processing Make angle a), generate the operation matrix M0 (rotation function in real coordinate system) for meeting the rotary shaft and rotation amount and notifies described aobvious Show object and face object (referring to Fig. 4 (B)).
For example, the target rotation (is guided the one side of the object of editor with editing pictures in parallel by stereo rotating Rotation) when with the associated amount of movement relative to starting point coordinate of the drag operation acquire should make image rotation angle (with Down it is perspective operational angle a), generates (associated with drag operation with the motion-vector of the cursor of the picture coordinate system (x, y, z) Two-dimensional movement direction relative to starting point coordinate) at right angle and to be made by the axis at the center of the rotation (stereo rotating axis) For operation matrix (function) M0 of rotary shaft, operation matrix M0 is notified into the display object and described faces object (reference Fig. 5 (B)).
The perspective operational angle a is acquired by longitudinal length × N of cursor amount of movement L/ editing pictures.
N is when dragging upwards from the lower section of picture, and the editor space for being placed the intersection object with it is (in the example It is real coordinate system space in son) angle relative to sight rotation together, in the feelings that are rotated a circle with a drag operation of request Under condition, which is 360 degree (referring to Fig. 5 (C)).
[dragging terminates]
Also, the target rotation receives the notice (" dragging that tow flag is OFF from ON variation from the mouse object Terminate "), in the same manner as the processing in the dragging, according to the associated movement relative to starting point coordinate of the drag operation Amount (referring to Fig. 5) generates the operation matrix M0, and notice faces object (referring to Fig. 4 (B)), and will pass through the drag operation Terminate to determine and be generated by the adjustment matrix M1 adjustment matrix M2 for facing object notice multiplied by the operation matrix M0 The spin matrix M for operating and generating along with the input, and notify display object (referring to Fig. 4 (C)).
On the other hand, in the case where the amount of movement L of the cursor along with the drag operation is " 0 ", made with unit matrix For the spin matrix M and notify display object.
In addition, the adjustment matrix M1, the adjustment matrix M2 and spin matrix M are the rotations relative to real coordinate system space Turn function.
<facing object>
The object of facing is one of the object for constituting the function data, mainly exports the tune in the stereo rotating Whole amount (amount for eliminating difference angle), and the adjustment matrix is exported based on adjustment amount derived from institute.
[dragging starts]
The notice that object receives " dragging starts " from the target rotation is faced described in the example, from the rotation Turn object and obtain the dragging start information, and acquirement and the intersection point, the near intersections that intersect object from existing graph data Material axis direction, intersect the local coordinate axis of object, surface direction or including characteristic vector (steel bar arrangement direction etc.) Hold Vector Groups (referring to Fig. 6 (A)).
Acquired data are set to this and face the inter-process in object and be transformed to (draw suitable for the coordinate system of the processing Areal coordinate system).
Hereinafter, the material axis direction, local coordinate system, surface direction and characteristic vector are denoted as " object vector Group ".
[in dragging]
Described in the example faces object and receives " (including the operation matrix in dragging from the target rotation M0 it) " notifies, is shown in the mark of the point at center of the intersection object as rotation processing, and faced as described below Capture the display processing of mark (indicating the capture mark close to state of facing).
It is sat as described above, the operation matrix M0 of real coordinate system is transformed to the process object coordinate system for facing object i.e. picture Mark the operation matrix m0 of system.
Object is faced described in the example in order to make the object for intersecting object and having according to the operation matrix m0 The rotation of body Vector Groups, converts the object Vector Groups with the operation matrix m0, judges converting by the oblique angle decision mechanism The object Vector Groups in, after the conversion, if exist and the approximate specific vector of the picture normal.
In the processing for facing object of the example, firstly, carry out judgement with the approximate vector of picture normal whether The processing (" test of picture normal " in Figure 17) being present in the object Vector Groups for intersecting object, only in existing feelings Under condition, next, being judged whether there is the processing with the x-axis of the picture coordinate system or the approximate vector of y-axis.
In the case where the result judged is can not detect the specific vector corresponding with the picture normal, Instruction/the information for capturing the display of mark and eliminating will be faced by sending to display figure module, and be continued in " in dragging " notice During, it repeats the above (referring to Fig. 6 (B)).
It on the other hand, is to detect the feelings of the specific vector corresponding with the picture normal in the result of the judgement Under condition, is sent to the display figure module and show the instruction/information for facing and capturing and indicating using the display object.
[dragging terminates]
The object of facing receives " dragging terminates " notice from the target rotation, by adjustment matrix M1 and adjustment square Battle array M2 is emptied, and is carried out solid below and is faced processing.
It is described to face in the same manner as the processing that object and this in the dragging face object, in order to according to the operation matrix The object Vector Groups rotation that m0 has the intersection object, converts the object Vector Groups with the operation matrix m0, passes through The oblique angle decision mechanism judges in the object Vector Groups of transformation, after the conversion, if exist close with the picture normal As specific vector.
In the case where the result judged is can not detect the specific vector corresponding with the picture normal, The object of facing will make the unit matrix of the three-dimensional difference angle " 0 " as adjustment matrix m1 (referring to Fig. 7).
It on the other hand, is to detect the feelings of the specific vector corresponding with the picture normal in the result of the judgement Under condition, it is described face object by the oblique angle decision mechanism from it is described intersect object the object Vector Groups select and the picture The normal closest specific vector in face exports the vertical of the picture normal and the specific vector by the arithmetical organ Body difference angle (referring to Fig. 7).
Also, it is described face object by the arithmetical organ acquire the apposition of the specific vector and picture normal to Amount, export using the apposition direction as rotary shaft, using it is described solid difference angle as rotation amount (adjustment amount) matrix m1, in order to Make the object Vector Groups rotation (ginseng intersecting object and having in a manner of the specific vector and the picture normal parallel According to Fig. 7), which is converted with the adjustment matrix m1 (referring to Fig. 9).
Next, the object carry out level of facing faces processing (" test of x-y axis " in Figure 17).
At this point, the object of facing makes the z of the object Vector Groups for intersecting object using arithmetical organ export The amount of axis ingredient is Vector Groups (hereinafter referred to as " picture Vector Groups ") (the reference figure on the picture coordinate surface (x, y, 0) of " 0 " 10), and using the oblique angle decision mechanism judge in the picture Vector Groups with the presence or absence of the x with the picture coordinate system Axis or the approximate specific vector of y-axis.
It is corresponding with the x-axis of the picture coordinate system or y-axis described specific as that can not detect in the result judged In the case where vector, the object of facing will make the unit matrix of the horizontal difference angle " 0 " as the picture coordinate system Adjust matrix m2 (referring to Fig. 7).
On the other hand, the result of the judgement be detect it is corresponding with the x-axis of the picture coordinate system or y-axis described It is described to face object and selected and the picture by the oblique angle decision mechanism from the picture Vector Groups in the case where specific vector The closest specific vector of the x-axis or y-axis in areal coordinate face (x, y, 0), exports the specific vector and institute by the arithmetical organ Horizontal difference angle (referring to Fig. 7) formed by the x-axis or y-axis of picture coordinate system is stated, is exported with the picture coordinate system (x, y, z) Z-axis rotates the adjustment matrix m2 of the horizontal difference angle as rotary shaft.
In addition, face processing in the solid and level is faced in processing, following measure is taken to make the object that intersects Positional relationship of the object Vector Groups in the editor space is constant before and after these processing: making to utilize the adjustment square The object Vector Groups before the transformation of battle array m1 are temporarily kept out of the way, and recover to original state in these after treatments;Or it is multiple System using the object Vector Groups before the transformation of the adjustment matrix m1 and executes the processing in the duplication destination.
Finally, it is described face object by with face solid difference angle and horizontal difference angle obtained in the processing of object at this The corresponding adjustment matrix m1 and adjustment matrix m2 is transformed to the adjustment matrix for the processing being suitable in real coordinate system respectively M1 and adjustment matrix M2 is simultaneously notified target rotation (referring to Fig. 7), and will become the rotation to the transmission of display figure module Instruction/information that the mark of the point at center and the display for facing capture mark eliminate.
<display object>
The display object is one of the object for constituting the function data, have by the position coordinates of the object from Real coordinate system transformation be the transformation matrix (sight mobile spin matrix) of picture coordinate system, by the position coordinates of the object from picture Areal coordinate system is transformed to transformation matrix (inverse matrix of the mobile spin matrix of sight) and the mobile rotation of the sight of real coordinate system The projection matrix Ms that torque battle array is multiplied with by the projection matrix for being located at project objects to the editing pictures of real coordinate space.
The display object in the example carries out the operation of the graph data suitably with proper in the editing pictures Locality carries out description corresponding with input operation, and the projection matrix Ms for being held, and is divided into the mobile rotation of the sight Matrix and projection matrix are managed, and receive amount of movement L (=| p0-p1 |) or the rotation of the viewpoint obtained from other objects Amount (perspective operational angle) a simultaneously successively accumulates to update the mobile spin matrix ingredient of the sight, according to asking from other objects Appropriate notice is asked to hold matrix using mobile the various of spin matrix of the newest sight.
Also, the display object in the example is according to the subject relevant to the registration object or by each The graph data of the mark that object generates etc. carries out showing the processing for the graph data edited in editing pictures.
Specifically, the display object in the example by the operation matrix M0 notified from the target rotation with And adjustment matrix M1 and the adjustment matrix M2 are received in the form of the spin matrix M (=M0M1M2), it will thus provide The function of new sight (view) information when editing pictures are shown is multiplied with the spin matrix M, and generation will be with described Rotation (variation of the sight relative to editor space) centered on object intersection point as editing pictures display and the rotation that reflects Matrix Mv (=movement matrix (- object intersection point) M0M1M2 movement matrix (object intersection point)).
In addition, the spin matrix Mv is that the object intersection point is made to pass through the movement matrix (- object intersection point) to real seat Target origin is mobile and carries out utilizing the rotation of spin matrix M centered on the origin, and the object intersection point is then made to pass through institute The matrix that movement matrix (object intersection point) returns to the position of the object intersection point real coordinate system existing originally is stated, by this is utilized The transformation of spin matrix Mv, so as to make sight relative to editor's spatial variations.
Also, the display object in the example is by the spin matrix Mv of the transformation based on the sight and existing projection square Battle array Ms is multiplied to update projection matrix Ms (Ms=MvMs), by the projection matrix Ms that will update in the graph data The position coordinates etc. for all display objects for including are sent to the display figure module together, to implement to utilize display letter Several operations faces image in the expected face of the editing pictures display reflection input operation (referring to Fig. 8 (B)).
In addition, exporting the rotation using the adjustment matrix M1 and adjustment matrix M2 as unit matrix in dragging Torque battle array M is led at the end of dragging using from the adjustment matrix M1 and the adjustment matrix M2 for facing object notice The spin matrix M and similarly handled (referring to Fig.1 7) out.
As described above, tool is faced when the editing pictures show and face image etc. described in the utilization, in the object In the processing of testing agency, the intersection point of the picture normal and body surface is calculated by the object detection mechanism, is not being deposited In the case where the object intersected with the picture normal, the datum level with the real coordinate system is calculated by the arithmetical organ Intersection point, using such calculated intersection point as the center (referring to Fig. 8 (A)) of the rotation process of the object of the target rotation, Reference axis including the real coordinate system in the detection range of specific vector.

Claims (4)

1. a kind of three-dimensional Graphics System, combination are able to carry out the graph data of computer disposal and map, which is characterized in that
Having the tool of facing, the certain surface for the object for including in graph data is shown according to input operation faces picture,
The tool of facing has:
Operate testing agency, content, amount, direction or the coordinate of detection input operation;
Object detection mechanism, the determining picture normal with when carrying out the input operation intersects or close object;
Oblique angle decision mechanism, detection is grasped with the input from the vector that the object determined by the object detection mechanism has Specific vector of the intersecting angle of the picture normal in work within predetermined angular;And
Rotating mechanism, according to it is described operation testing agency detection information make include the graph data editor space relative to Sight rotation, also, in the case where detecting the specific vector at the end of input operation, make to include the figure number According to editor space rotate relative to sight so that the specific vector and the picture normal parallel,
Tool is faced when editing pictures show and face image described in the utilization, in the processing of the object detection mechanism, is led to The intersection point that the object detection mechanism calculates the picture normal and body surface is crossed, is intersected being not present with the picture normal Object in the case where, calculate the intersection point of the datum level of the real coordinate system of the picture normal and object, will be so calculated Center of the intersection point as the rotation process of the object of target rotation includes the real coordinate system in the detection range of specific vector Reference axis.
2. three-dimensional Graphics System according to claim 1, which is characterized in that have:
Oblique angle decision mechanism, detection is grasped with the input from the vector that the object determined by the object detection mechanism has Specific vector of the intersecting angle of picture reference axis in work within predetermined angular;And
Rotating mechanism makes to include that the editor space of the graph data is rotated with the picture normal axis, so that by the object The local coordinate axis for the object that body testing agency determines or real reference axis are parallel with the picture reference axis.
3. a kind of recording medium preserves the three-dimensional mapping that combination is able to carry out the graph data of computer disposal and maps Program, which is characterized in that
The three-dimensional plotting program makes computer as combining the graph data for being able to carry out computer disposal and map Three-dimensional Graphics System plays a role,
The three-dimensional Graphics System has the tool of facing, and shows the specific of the object for including in graph data according to input operation Picture is faced in face,
The tool of facing has:
Operate testing agency, content, amount, direction or the coordinate of detection input operation;
Object detection mechanism, the determining picture normal with when carrying out the input operation intersects or close object;
Oblique angle decision mechanism, detection is grasped with the input from the vector that the object determined by the object detection mechanism has Specific vector of the intersecting angle of the picture normal in work within predetermined angular;And
Rotating mechanism, according to it is described operation testing agency detection information make include the graph data editor space relative to Sight rotation, also, in the case where detecting the specific vector at the end of input operation, make to include the figure number According to editor space rotate relative to sight so that the specific vector and the picture normal parallel,
Tool is faced when editing pictures show and face image described in the utilization, in the processing of the object detection mechanism, is led to The intersection point that the object detection mechanism calculates the picture normal and body surface is crossed, is intersected being not present with the picture normal Object in the case where, calculate the intersection point of the datum level of the real coordinate system of the picture normal and object, will be so calculated Center of the intersection point as the rotation process of the object of target rotation includes the real coordinate system in the detection range of specific vector Reference axis.
4. recording medium according to claim 3, which is characterized in that
The three-dimensional plotting program makes computer play a role as three-dimensional Graphics System, and the three-dimensional Graphics System has:
Oblique angle decision mechanism, detection is grasped with the input from the vector that the object determined by the object detection mechanism has Specific vector of the intersecting angle of picture reference axis in work within predetermined angular;And
Rotating mechanism makes to include that the editor space of the graph data is rotated with the picture normal axis, so that by the object The local coordinate axis for the object that body testing agency determines or real reference axis are parallel with the picture reference axis.
CN201410301666.0A 2013-09-03 2014-06-27 Three-dimensional Graphics System and recording medium Active CN104424663B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013182361A JP5905421B2 (en) 2013-09-03 2013-09-03 Three-dimensional drawing system and program thereof
JP2013-182361 2013-09-03

Publications (2)

Publication Number Publication Date
CN104424663A CN104424663A (en) 2015-03-18
CN104424663B true CN104424663B (en) 2019-07-30

Family

ID=52699735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410301666.0A Active CN104424663B (en) 2013-09-03 2014-06-27 Three-dimensional Graphics System and recording medium

Country Status (2)

Country Link
JP (1) JP5905421B2 (en)
CN (1) CN104424663B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5588098A (en) * 1991-11-22 1996-12-24 Apple Computer, Inc. Method and apparatus for direct manipulation of 3-D objects on computer displays
JP2001283239A (en) * 2000-01-24 2001-10-12 Fujitsu Ltd Graphic processor, recording medium and program
CN1399230A (en) * 1994-06-20 2003-02-26 世雅企业股份有限公司 Image processing method and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5467444A (en) * 1990-11-07 1995-11-14 Hitachi, Ltd. Method of three-dimensional display of object-oriented figure information and system thereof
JP2000298734A (en) * 1999-04-12 2000-10-24 Mitsubishi Electric Corp Cross section generating device for three-dimensional model
JP2002074400A (en) * 2000-08-28 2002-03-15 Sony Corp System and method for navigation and storage medium
US20130090895A1 (en) * 2011-10-11 2013-04-11 Dassault Systemes Device and associated methodology for manipulating three-dimensional objects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5588098A (en) * 1991-11-22 1996-12-24 Apple Computer, Inc. Method and apparatus for direct manipulation of 3-D objects on computer displays
CN1399230A (en) * 1994-06-20 2003-02-26 世雅企业股份有限公司 Image processing method and equipment
JP2001283239A (en) * 2000-01-24 2001-10-12 Fujitsu Ltd Graphic processor, recording medium and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
从三维点云数据中提取物体特征点的研究;王瑶;《中国优秀硕士学位论文全文数据库信息科技辑》;20101015;第2010年卷(第10期);第23页

Also Published As

Publication number Publication date
JP2015049802A (en) 2015-03-16
JP5905421B2 (en) 2016-04-20
CN104424663A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN105074617B (en) Three-dimensional user interface device and three-dimensional manipulating processing method
US20080030461A1 (en) Mixed reality presentation apparatus and control method thereof, and program
US7974462B2 (en) Image capture environment calibration method and information processing apparatus
CN100363880C (en) Operation input device and method of operation input
US8081815B2 (en) Marker arrangement information measuring apparatus and method
US8825452B2 (en) Model producing apparatus, model producing method, and computer-readable recording medium in which model producing program is stored
US8055061B2 (en) Method and apparatus for generating three-dimensional model information
US7627137B2 (en) Image composition system, image composition method, and image composition apparatus
KR101845796B1 (en) A virtual reality-based management method combining drone inspection information
CN102781631B (en) Information processor and control the method for this device
US8224121B2 (en) System and method for assembling substantially distortion-free images
US8212993B2 (en) Method and apparatus for surveying actual measurement data of a component
CN106797458B (en) The virtual change of real object
US20160019319A1 (en) Slicing and/or texturing for three-dimensional printing
US20180204387A1 (en) Image generation device, image generation system, and image generation method
CN109255749A (en) From the map structuring optimization in non-autonomous platform of advocating peace
JP6915001B2 (en) Displaying objects based on multiple models
DE102013110580A1 (en) Method for optically scanning and measuring a scene
EP2977961B1 (en) Method and communication device for creating and/or editing virtual objects
US20160379368A1 (en) Method for determining an imaging specification and image-assisted navigation as well as device for image-assisted navigation
JP2008134161A (en) Position attitude measuring method, and position attitude measuring device
JP2019194924A5 (en)
JP2008293357A (en) Information processing method and information processor
CN110956695A (en) Information processing apparatus, information processing method, and storage medium
CN106020762A (en) Graphical user interface (GUI) shading based on context

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