CN104424663A - Three-dimensional plotting system and program thereof - Google Patents

Three-dimensional plotting system and program thereof Download PDF

Info

Publication number
CN104424663A
CN104424663A CN201410301666.0A CN201410301666A CN104424663A CN 104424663 A CN104424663 A CN 104424663A CN 201410301666 A CN201410301666 A CN 201410301666A CN 104424663 A CN104424663 A CN 104424663A
Authority
CN
China
Prior art keywords
picture
input operation
detection mechanism
vector
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410301666.0A
Other languages
Chinese (zh)
Other versions
CN104424663B (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 invention provides a three-dimensional plotting system and a program thereof which can reach a state of a front view of an expected surface from a side view through simple operation. The three-dimensional plotting system has a front view tool and displays a front view picture of a specified surface of an object contained in graphic data according to input operation. The front view tool comprises an operation detection mechanism, an object detection mechanism, an oblique angle determination mechanism and a rotary mechanism, wherein the operation detection mechanism detects content, quantity, direction or coordinate of the input operation; the objection detection mechanism determines an object intersected or close to a frame normal in the input operation; the oblique angle determination mechanism detects a specific vector of a cross angle of the frame normal within a specified angle in the input operation; the rotary mechanism enables an edition space containing graphic data to rotate relative to an optical line of sight according to detection information of the operation detection mechanism, and enables the edition space containing the graphic data to rotate relative to the optical line of sight so as to enable the specific vector to be parallel to the frame normal under a condition that the input operation is finished and the specific vector is detected.

Description

Three-dimensional Graphics System and program thereof
Technical field
The present invention relates to Graphics System and the program thereof of carrying out the editing and processing (mapping) of figure with three-dimensional.
Background technology
Up to the present, for three-dimensional Graphics System, provide the Graphics System that X-axis, Y-axis or Z axis can be made to rotate edlin operation of going forward side by side.
Three-dimensional Graphics System be in the past by mouse drag, key operation and can change map obtain object towards Graphics System, display direction be stravismus, from XYZ direction of principal axis observe front view (FV), elevation drawing.
Wherein, also there is following Graphics System: stravismus can carry out its angular setting until reach the direction of expection and obtain by continuation mouse drag, key operation, the front view (FV) observed from XYZ direction of principal axis, facing of elevation drawing can be obtained (for example, referring to following patent documentation) by the input of the key determined.
Patent documentation 1: Japanese Unexamined Patent Publication 07-105263 publication
Patent documentation 2: Japanese Unexamined Patent Publication 2002-74400 publication
But, there is following problems in the existing method headed by the technology that described publication is recorded: becomes when facing state in the process of the editor under stravismus state, have to stop drag operation, press the button being assigned with the function becoming the state of facing, state is faced in order to what become target from current stravismus state, W axle in the local coordinate system of operator's oneself judgment object necessary, U axle, which in V axle is near normal (the U-V plane of picture, V-W plane, W-U plane is (following, be denoted as " reference field ") in which near picture) operate.
Specifically, in order to show buildings, making it rotate right flank can be faced from front, must drag and rotate to make U axle towards front.Although by such operation, picture is substantially vertical with U axle, reaches the state close to facing V-W plane, but, vertical accurately owing to being difficult to reach, therefore sometimes also can see the face not wishing to see.
Therefore, although also there is the key input facing the function of the image in nearest face by starting display, the CAD of complete front elevation picture can be shown, but, be difficult to recognize that the face watched attentively is which face be made up of U axle, V axle or W axle at the very start often there is the situation needing repeatedly to re-start key input.
Especially, when wanting to face the face tilted relative to described reference field, there is following problems: the anglec of rotation of drag operation must be made in units of the angle of the approximate number of such as 90 degree to carry out loaded down with trivial details rotation process for each axle.
Summary of the invention
The present invention completes just in view of the foregoing, and its object is to provides a kind of three-dimensional Graphics System and program thereof, can reach the state facing desired face with easy operation from stravismus state.
In order to solve the of the present invention three-dimensional Graphics System that above-mentioned problem completes, combination can be carried out the graph data of computer disposal and map, it is characterized in that, possesses the instrument of facing, that carrys out the certain surface of the object comprised in display graphics data according to input operation faces picture, described instrument of facing possesses: operation detection mechanism, detects the content of input operation, amount, direction or coordinate; Object detection mechanism, determines to intersect or close object with picture normal when carrying out described input operation; Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the described picture normal in described input operation from the vector that the object determined by described object detection mechanism possesses; And rotating mechanism, according to the Detection Information of described operation detection mechanism, the editor space comprising described graph data is rotated relative to sight line, and, when detecting described specific vector at the end of described input operation, the editor space comprising described graph data is rotated to make described specific vector and described picture normal parallel relative to sight line.
In order to solve the of the present invention three-dimensional plotting program that above-mentioned problem completes, combination can be carried out the graph data of computer disposal and map, it is characterized in that, make computing machine can carry out the graph data of computer disposal as combination and the three-dimensional Graphics System carrying out mapping plays a role, described three-dimensional Graphics System possesses the instrument of facing, that carrys out the certain surface of the object comprised in display graphics data according to input operation faces picture, described instrument of facing possesses: operation detection mechanism, detects the content of input operation, amount, direction or coordinate; Object detection mechanism, determines to intersect or close object with picture normal when carrying out described input operation; Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the described picture normal in described input operation from the vector that the object determined by described object detection mechanism possesses; And rotating mechanism, according to the Detection Information of described operation detection mechanism, the editor space comprising described graph data is rotated relative to sight line, and, when detecting described specific vector at the end of described input operation, the editor space comprising described graph data is rotated to make described specific vector and described picture normal parallel relative to sight line.
Preferably be configured to, as the rotating mechanism of described three-dimensional Graphics System or described three-dimensional plotting program, also possess: oblique angle decision mechanism, from the vector that the object determined by described object detection mechanism possesses, detect the specific vector of intersecting angle within predetermined angular with the picture coordinate axis in described input operation; And rotating mechanism, the editor space making to comprise described graph data with described picture normal for axle rotates, with make the local coordinate axle of the object determined by described object detection mechanism or real coordinate axis parallel with described picture coordinate axis.
In addition, described picture normal refers to the normal (central normal) of the normal (instruction vertical line) of the picture of the position by the cursor by described input operation movement or the picture by the central authorities of editing pictures.
As described specific vector, the local coordinate axle of real coordinate axis or described object, face normal, material axis or arrangement of reinforcement direction etc. can be adopted.The reason being not limited to described normal is, such as, when facing the inscape of the building element being in heeling condition, using the axle of the local coordinate of this object or real coordinate as specific vector, exist not only want to see this inscape intrinsic face picture, and wish the situation installing to the state building element from front and side observation group.
As described input operation, can list and utilize the drag operation of mouse etc., fly the operation of shuttle controller (jog-shuttle) etc.
As mentioned above, according to three-dimensional Graphics System of the present invention and program thereof, should rotate with the form being adsorbed in specific vector in the editor space of the object of display picture display by making to comprise, the sight line to all objects of mapping in editor space and relevant institute's directed quantity thereof can be adjusted.
Such as, the front elevation picture in the Z axis of real coordinate system, X-axis or any one direction of Y-axis can be realized by means of only the operation of the beginning of specific operation and end, even the front elevation picture in the W axle of local coordinate system, U axle or any one direction of V axle, also can by means of only the beginning of the specific operations such as dragging, continue in and the operation that terminates realize.
Specifically, even to the front elevation picture in the normal direction of object each of having of editor, material axis direction or arrangement of reinforcement direction, also can show by means of only the operation of described specific operation and end.
And, can by predetermined output notice user close fact facing state in described specific operation, user suitably can specify and send this predetermined angle threshold exported.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an example of the process of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 2 is the process flow diagram of an example of the process undertaken by input operation of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 3 is the process flow diagram of an example of the distribution of the process of the change along with dragging mark illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 4 be the target rotation of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof at (A): drag start time; (B): when dragging lasting; And the process flow diagram of an example of the process carried out at the end of (C) dragging.
Fig. 5 is the key diagram of the action of the target rotation of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 6 illustrates to face object at (A) in three-dimensional Graphics System of the present invention and program thereof: drag when starting; And (B): the process flow diagram dragging an example of the process carried out when continuing.
Fig. 7 is the process flow diagram facing an example of the process that object carries out at the end of dragging illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 8 is the key diagram of an example of the process of the display object illustrated in three-dimensional Graphics System of the present invention and program thereof.
Fig. 9 is the key diagram that the solid of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof faces an example of process.
Figure 10 is the key diagram that the level of the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof faces an example of process.
Figure 11 illustrates picture normal in three-dimensional Graphics System of the present invention and program thereof and the key diagram of an example of relation being presented at the existing object in editing pictures.
Figure 12 is the key diagram of an example of the relation that picture normal in three-dimensional Graphics System of the present invention and program thereof and the existing object be presented in editing pictures and real coordinate are shown.
Figure 13 illustrates picture normal in three-dimensional Graphics System of the present invention and program thereof and the key diagram of an example intersecting relation of plane intersecting thing be presented in editing pictures.
Figure 14 is the key diagram of an example of the hardware configuration that three-dimensional Graphics System of the present invention is shown.
Figure 15 is the key diagram of an example of the content of the subject that the instrument of facing illustrated in three-dimensional Graphics System of the present invention and program thereof adopts.
Figure 16 is the process flow diagram facing an example of the flicker process of the rotation center mark in object illustrated in three-dimensional Graphics System of the present invention and program thereof.
Figure 17 is the process flow diagram of the example that the data processing illustrated in three-dimensional Graphics System of the present invention and program thereof is passed.
Label declaration
1: input media; 2: control device; 3: output unit; 4: pen recorder.
Embodiment
Below, accompanying drawing be shown and describe a kind of embodiment of three-dimensional Graphics System of the present invention (following, be denoted as Graphics System) and program thereof in detail.
Example shown in Figure 14 is, the Graphics System that the graph data carrying out that can carry out computer disposal by computer system combination is mapped, and consists of and possesses input media 1, control device 2, output unit 3 and pen recorder 4.
Described input media 1 is the device of the data that keyboard, indicating equipment etc. can be read by the operation input control device of user.
Described control device 2 in the hardware comprising CPU, storer and input/output interface, installs the three-dimensional plotting program that computer system is played a role as Graphics System (below, be denoted as plotting program.) control device.
Described output unit 3 is the display equipment showing edited figure in the mode that can observe, the printer etc. printed on paper.
Pen recorder 4 is the various recording mediums such as hard disk, USB storage.
The example of this computer system is, by said structure, starts the application program (plotting program) of preserving in described hard disk and plays function as Graphics System.
The graph data of editor is by the reading to the pen recorder 4 be made up of various recording medium, carry out input relative to Graphics System or preservation through the operation of described input media 1.
The editing and processing of described graph data uses the instrument (function) be equipped with in described Graphics System and the position data obtained by input media 1 or material data etc. to carry out.
In order to carry out editing and processing as above, described Graphics System possesses: by the data (tool data) combined with possessing multiple tool boxes hierarchical of single or relevant multiple operation items; Distribute to the data (function data) of the specific function of described operation item; Selection mechanism, by input operation to operation item (following, to be denoted as " clicks " or " pressurization "), shows the specific function that described operation item is distributed in the tool box of distributing to the next level of described operation item or startup; Arithmetical organ, utilizes the computing needed for function execution started; And tool management authority, by the new selection of described operation item, remove the selection of the operation item of non-selected same level, and remove selection and the display in the tool box of the next level existence as removed operation item.
Described tool function according to its contents processing from described input media 1 obtain produced by the editing operation of user position data, material data etc. editor needed for various data as the parameter etc. of described tool function, implement the predetermined calculation process of this tool function by described arithmetical organ and the graph data obtained be saved in storer or pen recorder 4.
And, what this example had face instrument possesses coordinate measurement mechanism, operation detection mechanism, object detection mechanism, oblique angle decision mechanism and rotating mechanism, the front elevation picture observed with the normal direction, material axis direction or arrangement of reinforcement direction etc. that can only wait specific operation to realize each that has from the change in coordinate axis direction making map space, this object by dragging.
Play a role to face instrument described in making, in this example embodiment, process belong to real coordinate system respectively, mouse coordinates system (coordinate of input operation) is, four kinds of coordinates of picture coordinate system and local coordinate system.
The coordinate (real coordinate) of described real coordinate system refers to the whole three-dimensional orthogonal coordinate (X, Y, Z) making map space that this Graphics System has.
The position of the initial point of other coordinate systems, size and described real coordinate system are inconsistent, and each coordinate system beyond described real coordinate system is also inconsistent each other.
The coordinate of described mouse coordinates system refers to the coordinate (V, H) with the plane of fixing resolution formed by the input operation of the input equipments such as mouse.
The coordinate of described picture coordinate system refers to, by the viewpoint existed in described real coordinate space, direction of visual lines and upwards vector decision, using the front surface looking vertebra platform (View Frustum) of the outer rim of the editing pictures by display equipment segmentation as x-y reference field, and there is at described direction of visual lines the coordinate (x of the three-dimensional orthogonal coordinate system in the space of depth, y, z), using the viewpoint existed at described real coordinate space as initial point, the normal (z-axis) using sight line as described reference field (x-y plane).
That is, real coordinate system and picture coordinate system can utilize the positive inverse matrix of " sight line moves rotation matrix " determining the sight line of observing real coordinate system space (being editor space in this example) mutually to convert.
In addition, the matrix used in above-mentioned matrix and the following description is affine transformation matrix.
The coordinate of described local coordinate system refers to the coordinate that the space that separates with each object intrinsic material axis, arrangement of reinforcement direction etc. are the three-dimensional orthogonal coordinate system of axle.
< coordinate measurement mechanism >
The cursor in editing pictures display that changes by using the input operation of the input medias such as mouse detects (for example, referring to Fig. 5 (A) from described position data in described coordinate measurement mechanism.) picture coordinate.
< operation detection mechanism >
The content of input operation, amount or direction are detected by the change of described picture coordinate by described operation detection mechanism.
Such as, the releasing of input operation (under the point in input media 1 or pressurization or key input etc.) and input operation (in input media 1, unclamp or pressurize and remove or key input etc.) and carry out the position coordinates of this input operation and releasing thereof or the change of position coordinates or the direction of operating etc. of deriving thus is its detected object.
< mouse object >
Mouse object is one of the object forming described function data in this example, it possesses the transformation matrix position coordinates of described viewpoint (cursor etc.) being converted into described picture coordinate system from described mouse coordinates system, receive the concrete operation information (comprising position coordinates) of the input operation of the mouse (input media 1) detected by described coordinate measurement mechanism and described operation detection mechanism, and make dragging mark change as described below.
The mouse object of this example utilizes described mouse coordinates system to carry out the process of the internal data of this object, when the result of this mouse object is passed to other objects, described result is transformed to real coordinate system.
The input operation of mouse is transformed to picture coordinate system by described transformation matrix from mouse coordinates system by the described mouse object in this example, the picture coordinate starting the cursor position of described input operation is detected by described coordinate measurement mechanism, this picture coordinate is preserved (with reference to Fig. 2 and Fig. 5 (A)) as starting point coordinate P0, the described input operation of mouse continues and its change in location, therewith concomitantly, calculate the distance L of described starting point coordinate based on the position coordinates in the change obtained from described coordinate measurement mechanism successively by described arithmetical organ and preserve, when detecting this distance for separating more than predetermined distance, dragging mark is set to ON (with reference to Fig. 2 (B)), utilize the detection of the releasing of the input operation of the mouse obtained from described operation detection mechanism, detect the picture coordinate of this position by described coordinate measurement mechanism and preserve, dragging mark is set to OFF (with reference to Fig. 2 (C)).
< object detection mechanism >
Described object detection mechanism is (following from the object utilizing described editing operation to register as graph data, be denoted as " registration thing ") detect object (intersect thing) (reference Figure 11 or Figure 13) of intersecting with picture normal, when described intersection thing cannot be detected, to edit space (is real coordinate system space in this example embodiment, also can be but the inclination that there is expection relative to real coordinate system space as required, other three dimensions of movement) reference field regard object as and detect and the real coordinate of the point of crossing of this reference field (with reference to Fig. 8 and Figure 12).
Described object detection mechanism is in the described editing pictures of carrying out editing, first by described picture normal with described picture coordinate definition, the track of this picture normal is transformed to real coordinate by transformation matrix, by comparing with the position coordinates (real coordinate) of described registration thing, detect and the object of the track cross of this picture normal (with reference to Fig. 8).
In addition, when not detecting the object with the track cross of described picture normal, also can be, before carrying out regarding described editor's reference field the process of object as, to to leave near certain distance also with the circular scan of imaginary picture normal relative to this picture normal, carry out the process detecting the object crossing with this imaginary picture normal and intersection point now.
Described reference field refers to the initial point by real coordinate system, the face in three faces of normal sensing X-axis, Y-axis, Z axis.When described picture normal intersects with multiple reference field, using the point nearest with described editing pictures and X-axis, Y-axis, Z-direction as vector detection out.
Picture normal in this example is described central normal, is the vector from the position of the central authorities of described editing pictures towards the depth direction of this editing pictures.This vector is with by its starting point coordinate (x0, y0, and terminal point coordinate (x0 z0), y0,-zn) the described picture coordinate system that forms represents, and it can be used as the real coordinate system vector being transformed to real coordinate by described transformation matrix (sight line moves the inverse matrix of rotation matrix) to use (with reference to Figure 12: display object).
Described sight line moves rotation matrix for the matrix for the rotary motion (or the reverse rotation in described editor space moves) using described object intersection point as the sight line of viewpoint (center of rotation) being reflected as display direction, generates projection matrix Ms by being multiplied with by the projection matrix of the project objects to editing pictures that are in real coordinate space.
Described object detection mechanism in this example selects to face instrument by described selection mechanism, described dragging is masked as ON, and determines the face (cross facet) (with reference to Fig. 8 and Figure 13) of the object (intersection thing) of the central authorities comprising described editing pictures when carrying out described input operation.
And, when picture normal (sight line) through (intersection) multiple object, object (intersection thing) closer to described editing pictures is processed as object, using the center of the intersection point of described intersection thing as described rotation.
Described picture normal is when the existing object determined whether with edit intersects, the process of the display object that utilization illustrates below (with reference to Fig. 8 (A)), carry out judging this picture normal whether with form the single triangle on surface of described object or any one process intersected (judging to process) (reference Figure 15 (A)) of multiple triangle sets of contacting with each other.
Described intersection point exists (with reference to Figure 13) with these three kinds of forms in described vertex of a triangle, on line, on face, when described intersection point to be present on summit or on line, this intersection point is contained in multiple triangle, therefore adopt the average vector of each leg-of-mutton normal as described normal (object normal), when described intersection point is present on described, adopt the single leg-of-mutton normal comprising this intersection point as described normal.
For there is thickness and incidence point (side of starting point near the picture normal) object different from eye point (side away from the starting point of picture normal), incidence point is adopted as described intersection point.
Determining described intersection thing as described above, determine with in the leg-of-mutton situation that described picture normal intersects by described arithmetical organ, described arithmetical organ is utilized to derive the normal (object normal: the normal by this object intersection point comprising the face of described object intersection point) of intersection point (object intersection point) on this triangle (cross facet) and this point of intersection, and detect from subject and will intersect the three-dimensional local coordinate system (U that thing possesses as the structure of object, V, W) each axle (with reference to Fig. 9 and Figure 10), arrangement of reinforcement direction or material axis direction, and be kept in storer etc.
In addition, in this example embodiment, using described central normal as picture normal, but also can using described instruction vertical line as picture normal.
< subject >
Subject is one of object forming described graph data, substantially, it is the coordinate etc. with object, and the request for the object forming various function data provides required information, based on the object of the content of the result lastest imformation of various function data.
Now, the longitudinal reinforcement that the material axis had according to this object, the arrangement of reinforcement information had from this object obtain, transverse steel direction, the vector closest to described object intersection point is calculated by described arithmetical organ, and return above-mentioned intersection point, vector according to the request of other objects, or upgrade its content.
Described subject in this example keep the material axis (local coordinate in direction etc. is shown) of the position coordinates (local coordinate) of object, object, object arrangement of reinforcement information (local coordinate in direction etc. is shown), be real transformation of coordinates matrix or the transformation matrix position coordinates of described object being transformed to local coordinate from real coordinate by the position coordinates of described object from transformation of local coordinates.
In this example embodiment, it is the object (with reference to Figure 15 (A)) possessing the surface be made up of single or multiple triangle by object definitions, the triangle adjoined one another (triangle of common edge) group is registered as subject as an object, thus the outer rim (full surface) of clear and definite this object.
The position coordinates of described object is the apex coordinate on the surface be made up of described triangle sets.
The material axis of described object is linear with the object of the section such as beam, post shape and linear input, in the object (face component) in face forming the buildingss such as isolated footing, floor, wall, also there is the situation cannot considering material axis.
The arrangement of reinforcement information of described object is the arrangement of reinforcement direction (with reference to Figure 15) of the reinforcing bar set accordingly with the specification of each parts in the moment of the face component such as input isolated footing, floor, wall.
< oblique angle decision mechanism >
Described oblique angle decision mechanism detects the intersecting angle θ as a pair vector of object, and judges it whether within predetermined angular.
By this oblique angle decision mechanism, such as in drag operation, the characteristic vector (described object normal etc.) generated from the object determined by described object detection mechanism (intersection thing) of described graph data and the intersecting angle θ of described picture normal can be detected, and this intersecting angle θ (following, to be denoted as " being similar to ") specific vector within predetermined angular can be detected.
Whether the process (specific vector check processing) detecting described specific vector is calculated the inner product of described picture normal and specific vector undetermined by described arithmetical organ, and evaluate this value and wait facing in approximate extents of regulation.
< rotating mechanism >
Described instrument of facing possesses rotating mechanism, described rotating mechanism is by described input operation, make described intersection thing stereo rotating (solid faces process), to make the one side of the intersection thing detected by described object detection mechanism parallel with described editing pictures, and, make described intersection thing with described picture normal for axle horizontally rotates (level faces process), the longitudinal axis or the transverse axis of the vector had to make described intersection thing and picture coordinate system are parallel.
Rotating mechanism in this example possesses target rotation, faces object, display object.
Described target rotation and display object carry out the process of the internal data of each object with real coordinate system.Obtain the inverse matrix that described sight line moves rotation matrix in the process of described target rotation to carry out from described picture coordinate system to this target rotation of coordinate transform of described real coordinate system from described display object.
Describedly face object carries out the internal data of this object process with described picture coordinate system.Describedly to face in the process of object from described real coordinate system to the coordinate transform of described picture coordinate system this and face the transformation matrix (sight line moves rotation matrix) that object obtains for this from described display object and carry out.
Face in the process of each object of instrument described in formation, the transmitting-receiving comprising the data of graph data is that the form copied is carried out, such as, the distortion, movement etc. of the object Vector Groups (the material axis direction of object, local coordinate axle, surface direction and characteristic vector) of each object do not affect these data that the existing graph data edited, other objects have when inter-process.
Face in instrument at this example, each object, when carrying out the transmitting-receiving of described internal data with other objects, must be received and dispatched with the data of real coordinate system.Namely, the object carrying out processing beyond the data of real coordinate system is when exporting to other objects, the process from the data of other coordinate systems to the data transformation of real coordinate system must be carried out in this object, when inputting from other objects, must data transformation (with reference to Figure 17) from the data of real coordinate system to the coordinate system of the process be applicable to this object in this object.In fig. 17, symbol (circle of dotted line) represents process from from mouse coordinates to real coordinate transform (that have according to mouse obj be first transformed to picture coordinate with difference that is picture coordinate be transformed to real coordinate again), symbol (dashdotted circle) represents the process (using sight line to move rotation matrix) from real coordinate to picture coordinate transform, symbol (circle of solid line) represents the process (using sight line to move the inverse matrix of rotation matrix) from picture coordinate to real coordinate transform.
In addition, following matrix is utilized to carry out from described mouse coordinates system to the conversion of picture coordinate system: by be multiplied with the transformation matrix (sight line moves rotation matrix) from described real coordinate system to described picture coordinate system transformation obtained from described display object the matrix obtained from mouse coordinates system to the transformation matrix of picture coordinate system transformation described mouse object.
< target rotation >
Described target rotation is one of object forming described function data, it detects the described change dragging mark of described mouse object, be judged as " dragging " when dragging mark and being changed to ON from OFF, be judged as " in dragging " when dragging mark and keeping ON constant, be judged as when dragging mark and being changed to OFF from ON " drag and terminate ", according to its judge, as described below to display object or face object notice operation information (with reference to Fig. 4 (A)).
[drag and start]
Namely, described target rotation receives from described mouse object the notice (" dragging ") dragging and indicate and be changed to ON from OFF, obtain the position coordinates of the described point of crossing (object intersection point) described intersection thing from described display object, coordinate axis that the normal (object normal) of described cross facet, this intersection thing say the local coordinate that characteristic vector, this intersection thing of comprising have is (following, be denoted as " dragging start information ") (with reference to Fig. 4 (A)), and object (notice of " drag and start ") will be faced described in these message notice.
In addition, the process showing described rotation center mark in this example is face in object at this, centered by described object intersection point, do balling-up, the data transformation of this ball is real coordinate and notifies described display object.The process of described rotation center mark cancellation is notified ball described in described display object cancellation.
[in dragging]
And, described target rotation receives from described mouse object the notice (" dragging ") representing the state dragging mark lasting maintenance ON, according to the amount of movement relative to starting point coordinate accompanied with described drag operation (with reference to Fig. 5), the turning axle (the stereo rotating axle of postscript) at center utilizing described operation detection mechanism to derive to rotate process by described and rotation amount are (perspective operational angle a), generation meets the operation matrix M0 (rotation function in real coordinate system) of this turning axle and rotation amount and notifies described display object and face object (with reference to Fig. 4 (B)).
Such as, described target rotation by accompany with described drag operation time stereo rotating (rotation by the one side of the object of editor and editing pictures guide abreast) relative to the amount of movement of starting point coordinate try to achieve should make image rotation angle (be below perspective operational angle a), generate and described picture coordinate system (x, y, the motion-vector (the two-dimensional movement direction relative to starting point coordinate of accompanying with drag operation) of cursor z) is at a right angle, and using the axle at the center by described rotation (stereo rotating axle) as operation matrix (function) M0 of turning axle, this operation matrix M0 is notified described display object and described face object (with reference to Fig. 5 (B)).
Described perspective operational angle a is tried to achieve by the longitudinal length × N of cursor amount of movement L/ editing pictures.
N is when upwards dragging from the below of picture, the angle rotated relative to sight line together with the described editor space (being real coordinate system space in this example embodiment) that described intersection thing and its are placed, when asking to rotate a circle with a drag operation, this angle is 360 degree (with reference to Fig. 5 (C)).
[drag and terminate]
And, described target rotation receives the notice (" drag and terminate ") dragging and indicate and be changed to OFF from ON from described mouse object, in the same manner as the process in described dragging, described operation matrix M0 is generated according to the amount of movement relative to starting point coordinate accompanied with described drag operation (with reference to Fig. 5), notice faces object (with reference to Fig. 4 (B)), and the end by this drag operation is determined and adjusts matrix M 2 by the described adjustment matrix M 1 facing object notice to be multiplied by described operation matrix M0 to generate the rotation matrix M produced along with this input operation, and notify display object (with reference to Fig. 4 (C)).
On the other hand, when the amount of movement L of the cursor along with this drag operation is " 0 ", notify display object using unit matrix as described rotation matrix M.
In addition, described adjustment matrix M 1, adjustment matrix M 2 and described rotation matrix M are the rotation functions relative to real coordinate system space.
< faces object >
Described object of facing is one of object forming described function data, and it mainly derives the adjustment amount (eliminating the amount of difference angle) in described stereo rotating, and derives described adjustment matrix based on derived adjustment amount.
[drag and start]
The notice that object receives " drag and start " from described target rotation is faced described in this example, obtain described dragging start information from described target rotation, and obtain from existing graph data with intersect the intersection point of thing, near intersections material axis direction, intersect the local coordinate axle of thing, surface direction or comprise characteristic vector (arrangement of reinforcement direction etc.) hold Vector Groups (with reference to Fig. 6 (A)).
Acquired data are arranged at this and face the inter-process in object and be transformed to the coordinate system (picture coordinate system) being suitable for this process.
Below, described material axis direction, local coordinate system, surface direction and characteristic vector are denoted as " object Vector Groups ".
[in dragging]
Face described in this example and notify " (comprising described operation matrix M0) in dragging " that object receives from described target rotation, be presented at the mark that described intersection thing becomes the point at the center rotating process, and carry out facing the Graphics Processing catching mark (representing the seizure mark close to facing state) as described below.
As mentioned above, the operation matrix M0 of real coordinate system is transformed to this and faces the handling object coordinate system of object and the operation matrix m0 of picture coordinate system.
The described object Vector Groups rotation of object in order to make described intersection thing have according to described operation matrix m0 is faced described in this example, this object Vector Groups is converted with described operation matrix m0, judge in this object Vector Groups of conversion by described oblique angle decision mechanism, after the conversion, whether there is the described specific vector approximate with described picture normal.
Face in the process of object at this example, first, carry out judging whether the vector be similar to described picture normal is present in the described process (" picture normal is tested " in Figure 17) intersected in the described object Vector Groups of thing, only in case of presence, next, the process judging whether to there is the vector be similar to the x-axis of described picture coordinate system or y-axis is carried out.
Be when cannot detect the described specific vector corresponding with described picture normal in the result of described judgement, instruction/the information by facing the display cancellation catching mark is sent to display graphics module, and during " in dragging " notice continues, repeat above-mentioned process (with reference to Fig. 6 (B)).
On the other hand, be when detecting the described specific vector corresponding with described picture normal in the result of described judgement, send to described display graphics module and utilize described display object to show the instruction/information faced and catch mark.
[drag and terminate]
Described object of facing receives " drag terminate " notice from described target rotation, by adjustment matrix M 1 with adjust matrix M 2 and empty, carries out following solid and faces process.
Described object of facing is faced in the same manner as the process of object with this in described dragging, the described object Vector Groups had to make described intersection thing according to described operation matrix m0 rotates, this object Vector Groups is converted with described operation matrix m0, judge in this object Vector Groups of conversion by described oblique angle decision mechanism, after the conversion, whether there is the specific vector approximate with described picture normal.
Be when cannot detect the described specific vector corresponding with described picture normal in the result of described judgement, described in face object described three-dimensional difference angle will be made to be that the unit matrix of " 0 " is as adjustment matrix m1 (with reference to Fig. 7).
On the other hand, be when detecting the described specific vector corresponding with described picture normal in the result of described judgement, described object of facing selects the described specific vector closest with described picture normal by described oblique angle decision mechanism from the described object Vector Groups of described intersection thing, is derived the three-dimensional difference angle (with reference to Fig. 7) of described picture normal and described specific vector by described arithmetical organ.
And, described face object by described arithmetical organ try to achieve described specific vector and picture normal apposition vector, derive the matrix m1 using this apposition direction as turning axle, using described three-dimensional difference angle as rotation amount (adjustment amount), in order to make describedly to intersect the described object Vector Groups that thing has and rotate (with reference to Fig. 7) with described specific vector and the mode of described picture normal parallel, this object Vector Groups convert (reference Fig. 9) with described adjustment matrix m1.
Next, face object described in carry out level and face process (" test of x-y axle " in Figure 17).
Now, described object of facing utilizes described arithmetical organ to derive to make the amount of the z-axis composition of the described object Vector Groups of described intersection thing be the picture coordinate surface (x of " 0 ", y, 0) Vector Groups on is (following, be denoted as " picture Vector Groups ") (with reference to Figure 10), and utilize described oblique angle decision mechanism to judge in described picture Vector Groups, whether there is the specific vector be similar to the x-axis of described picture coordinate system or y-axis.
Be when cannot detect the described specific vector corresponding with the x-axis of described picture coordinate system or y-axis in the result of described judgement, described in face object described level error subangle will be made to be the adjustment matrix m2 (with reference to Fig. 7) of unit matrix as this picture coordinate system of " 0 ".
On the other hand, be when detecting the described specific vector corresponding with the x-axis of described picture coordinate system or y-axis in the result of described judgement, described object of facing is selected and described picture coordinate surface (x from described picture Vector Groups by described oblique angle decision mechanism, y, 0) x-axis or the closest specific vector of y-axis, level error subangle formed by the x-axis of this specific vector and described picture coordinate system or y-axis (with reference to Fig. 7) is derived by described arithmetical organ, derive with described picture coordinate system (x, y, z) z-axis rotates the adjustment matrix m2 of described level error subangle as turning axle.
In addition, described solid face process and level face in process, take following measure constant to the front and back making the position relationship of described object Vector Groups in described editor space of described intersection thing and process at these: to make to utilize the described object Vector Groups before the conversion of described adjustment matrix m1 to keep out of the way temporarily, and reset into original state after these process terminate; Or the described object Vector Groups copied before the conversion utilizing described adjustment matrix m1 also copies destination perform described process at this.
Finally, described object of facing faces the three-dimensional difference angle that obtains in the process of object and described adjustment matrix m1 corresponding to level error subangle and described adjustment matrix m2 is transformed to the adjustment matrix M 1 of the process be suitable in real coordinate system respectively and adjust matrix M 2 and notify target rotation (with reference to Fig. 7) by with at this, and sends the mark of the point at the center that will become described rotation to display graphics module and face the instruction/information catching the display cancellation indicated.
< display object >
Described display object is one of object forming described function data, it possess by the position coordinates of described object from real coordinate system transformation be picture coordinate system transformation matrix (sight line moves rotation matrix), be that the transformation matrix (sight line moves the inverse matrix of rotation matrix) of real coordinate system and described sight line move rotation matrix and to be multiplied with by the projection matrix of the project objects to editing pictures that are positioned at real coordinate space the projection matrix Ms obtained by the position coordinates of described object from picture coordinate system transformation.
Described display object in this example suitably carries out the operation of described graph data to carry out the description corresponding with input operation rightly in described editing pictures, and for held projection matrix Ms, be divided into described sight line and move rotation matrix and projection matrix manages, receive the amount of movement L (=| p0-p1|) of the viewpoint obtained from other objects or rotation amount (perspective operational angle) a and accumulation upgrades described sight line and moves rotation matrix composition successively, suitably notify that adopting up-to-date described sight line to move the various of rotation matrix holds matrix according to the request from other objects.
Further, the described display object in this example, according to the graph data of the described subject relevant to described registration thing or the mark that generated by each object etc., carries out the process showing the graph data edited in editing pictures.
Specifically, described display object in this example by the described operation matrix M0 notified from described target rotation and adjustment matrix M 1 and described adjustment matrix M 2 receive with the form of described rotation matrix M (=M0M1M2), the function of new sight line (view) information be provided in when described editing pictures shows is multiplied with described rotation matrix M, generate the rotation matrix Mv (=movement matrix (-object intersection point) M0M1M2 movement matrix (object the intersection point)) rotation (sight line is relative to the change in editor space) centered by described object intersection point reflected as the display of editing pictures.
In addition, described rotation matrix Mv is, described object intersection point is made to be moved to real origin by described movement matrix (-object intersection point) and centered by this initial point, carry out utilizing the rotation of rotation matrix M, then described object intersection point is made to get back to the matrix of the position of the real coordinate system that this object intersection point existed originally by described movement matrix (object intersection point), through make use of the conversion of this rotation matrix Mv, thus sight line can be made relative to described editor's spatial variations.
And, the rotation matrix Mv of the conversion based on described sight line is multiplied with existing projection matrix Ms and upgrades projection matrix Ms (Ms=MvMs) by the display object in this example, described display graphics module is sent to together with the described position coordinates by this projection matrix Ms and all display objects comprised in described graph data that upgrade etc., implement the computing utilizing explicit function, at the front elevation picture (with reference to Fig. 8 (B)) in the face of the expection of the described input operation of described editing pictures display reflection.
In addition, in dragging, described rotation matrix M is derived as unit matrix using described adjustment matrix M 1 and described adjustment matrix M 2, at the end of dragging, the described adjustment matrix M 1 of facing object notice from described and described adjustment matrix M 2 is used to derive described rotation matrix M and carry out same process (with reference to Figure 17).
As mentioned above, when facing instrument described in utilizing at described editing pictures display front elevation picture etc., in the process of described object detection mechanism, the intersection point of described picture normal and body surface is calculated by described object detection mechanism, when there is not the object intersected with described picture normal, the intersection point with the reference field of described real coordinate system is calculated by described arithmetical organ, using the intersection point that so the calculates center (with reference to Fig. 8 (A)) as the rotation process of the object of described target rotation, the coordinate axis of described real coordinate system is comprised in the sensing range of specific vector.

Claims (4)

1. a three-dimensional Graphics System, combination can be carried out the graph data of computer disposal and map, and it is characterized in that,
Possess the instrument of facing, that carrys out the certain surface of the object comprised in display graphics data according to input operation faces picture,
Described instrument of facing possesses:
Operation detection mechanism, detects the content of input operation, amount, direction or coordinate;
Object detection mechanism, determines to intersect or close object with picture normal when carrying out described input operation;
Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the described picture normal in described input operation from the vector that the object determined by described object detection mechanism possesses; And
Rotating mechanism, according to the Detection Information of described operation detection mechanism, the editor space comprising described graph data is rotated relative to sight line, and, when detecting described specific vector at the end of described input operation, the editor space comprising described graph data is rotated to make described specific vector and described picture normal parallel relative to sight line.
2. three-dimensional Graphics System according to claim 1, is characterized in that possessing:
Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the picture coordinate axis in described input operation from the vector that the object determined by described object detection mechanism possesses; And
Rotating mechanism, the editor space making to comprise described graph data with described picture normal for axle rotates, with make the local coordinate axle of the object determined by described object detection mechanism or real coordinate axis parallel with described picture coordinate axis.
3. a three-dimensional plotting program, combination can be carried out the graph data of computer disposal and map, and it is characterized in that,
Make computing machine can carry out the graph data of computer disposal as combination and the three-dimensional Graphics System carrying out mapping plays a role,
Described three-dimensional Graphics System possesses the instrument of facing, and that carrys out the certain surface of the object comprised in display graphics data according to input operation faces picture,
Described instrument of facing possesses:
Operation detection mechanism, detects the content of input operation, amount, direction or coordinate;
Object detection mechanism, determines to intersect or close object with picture normal when carrying out described input operation;
Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the described picture normal in described input operation from the vector that the object determined by described object detection mechanism possesses; And
Rotating mechanism, according to the Detection Information of described operation detection mechanism, the editor space comprising described graph data is rotated relative to sight line, and, when detecting described specific vector at the end of described input operation, the editor space comprising described graph data is rotated to make described specific vector and described picture normal parallel relative to sight line.
4. three-dimensional plotting program according to claim 3, is characterized in that,
Play a role as three-dimensional Graphics System, described three-dimensional Graphics System possesses:
Oblique angle decision mechanism, detects the specific vector of intersecting angle within predetermined angular with the picture coordinate axis in described input operation from the vector that the object determined by described object detection mechanism possesses; And
Rotating mechanism, the editor space making to comprise described graph data with described picture normal for axle rotates, with make the local coordinate axle of the object determined by described object detection mechanism or real coordinate axis parallel with described picture coordinate 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 true CN104424663A (en) 2015-03-18
CN104424663B 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 (5)

* 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
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
US20130090895A1 (en) * 2011-10-11 2013-04-11 Dassault Systemes Device and associated methodology for manipulating three-dimensional objects

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (5)

* 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
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
US20130090895A1 (en) * 2011-10-11 2013-04-11 Dassault Systemes Device and associated methodology for manipulating three-dimensional objects

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MICHAEL J. TARR: "Rotating objects to recognize them:A case study on the role of viewpoint dependency in the recognition of three-dimensional objects", 《PSYCHONOMIC BULLETIN》 *
李盛 等: "基于OpenGL视点坐标系的三维场景旋转算法", 《计算机工程与应用》 *
王瑶: "从三维点云数据中提取物体特征点的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
许万荣 等: "OpenGL中交互式任意旋转三维场景的实现", 《计算机应用》 *

Also Published As

Publication number Publication date
CN104424663B (en) 2019-07-30
JP5905421B2 (en) 2016-04-20
JP2015049802A (en) 2015-03-16

Similar Documents

Publication Publication Date Title
JP5132138B2 (en) Position and orientation measurement method, position and orientation measurement device
EP1901029B1 (en) Position and orientation measurement method and apparatus
JP4599184B2 (en) Index placement measurement method, index placement measurement device
US7698094B2 (en) Position and orientation measurement method and apparatus
CN111007485B (en) Image processing method and device and computer storage medium
WO2015123774A1 (en) System and method for augmented reality and virtual reality applications
JP6571262B2 (en) Display objects based on multiple models
JP6211510B2 (en) Image processing system and method
US20180204387A1 (en) Image generation device, image generation system, and image generation method
JP2019194924A5 (en)
CN110398215A (en) Image processing apparatus and method, system, article manufacturing method, storage medium
US9348542B2 (en) Display processing apparatus, display processing method, and computer-readable recording medium
CN114720995A (en) System and method for refining pose estimation of six degrees of freedom of target object
US11733825B2 (en) Interactive three-dimensional representations of objects
KR20100068603A (en) Apparatus and method for generating mipmap
CN112964255A (en) Method and device for positioning marked scene
CN104424663A (en) Three-dimensional plotting system and program thereof
WO2023027068A1 (en) Weld inspection method, weld inspection system, and weld inspection program
WO2022149315A1 (en) Dimension-measuring device and dimension-measuring method
McCleary et al. Automated reconstruction of cast-off blood spatter patterns based on Euclidean geometry and statistical likelihood
WO2021111613A1 (en) Three-dimensional map creation device, three-dimensional map creation method, and three-dimensional map creation program
KR102066862B1 (en) Apparatus and method for measuring high-speed box size for conveyors using RGB-D camera
CN110595363A (en) Three-dimensional virtual modeling method, system, device and storage medium
WO2020250336A1 (en) Direction communication device, direction communication method, and program
JP2017037004A (en) Information processing device, information processing method and program

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