This invention relates to an information processing apparatus and method. More particularly, the invention relates to an information processing apparatus and method for creating a three-dimensional (referred to as “3D” below) model (a 3D shape) using 3D-CAD.
The designing of 3D models of parts and units (referred to simply as “parts” below) that construct merchandise and products has long been performed using 3D-CAD. In such designing using 3D-CAD, attribute information such as dimensions, dimensional tolerance, geometrical tolerance, remarks and symbols is input with regard to elements such as the surfaces, ridge lines or apices of the 3D model of the designed part.
The 3D model and attribute information are printed on a recording medium such as paper in order that the designer or various technicians may write down the results of checks and investigations. The following two methods are available as methods of printing a 3D model and attribute information concerning 3D-CAD on a recording medium such as paper by a printer:
The first method is a method of transmitting the 3D-CAD 3D model and attribute information to a 2D-CAD system and creating a printout of a drawing using the 2D-CAD system.
The second method is a method in 3D-CAD of outputting to a printer or the like and printing a 3D model and attribute information within a view port (a location obtained by deciding a partially rectangular region in a diagrammatic area and adopting this region as the diagrammatic area) converted to image data as image information such as bitmap data for being displayed on a display screen such as a CRT.
With the first method of printing a 3D model and attribute information, a so-called diagram must be created in 2D-CAD in order to be printed. This is a troublesome operation. More specifically, in the creation of a diagram in 2D-CAD, it is necessary to set the view (the line-of-sight direction for displaying the 3D model), place a projection diagram and set the scale. Further, it is necessary to specify the cutting line of a sectional view as required, or to specify the range and name of a partially enlarged view, or to specify an arrow diagram. These operations can be performed in a short time if the part is simple in shape. However, if the part is large in size or of a complicated shape and many drawings such as a large number of projections, sectional views and partially enlarged views, etc., must be printed out, a great deal of time is required.
Further, the fact that the design task cannot be completed with 3D-CAD and an operation in 2D-CAD is required means that the designer is compelled to learn many operating commands. This is not a favorable working environment. Furthermore, whenever various items are checked during the course of the designing activity, a 2C-CAD drawing must be created using the latest information available at the time. This lowers efficiently markedly.
Further, with the second method of printing a 3D model and attribute information, the orientation of the 3D model must be changed whenever one sheet of the required diagrammatic information is printed. Such a method is inefficient.
Accordingly, the present invention has been devised in view of the aforesaid problems and provides an information processing apparatus that is capable of printing out desired drawing information efficiently.
Further, the present invention provides an information processing apparatus in which the shape of a 3D model can be comprehended reliably and efficiently from drawing information and it is possible to transmit design information and the intent of design to a downstream process reliably.
According to one aspect of the present invention, an information processing apparatus comprises a display control device adapted to display a plane, in which attribute-information concerning a three-dimensional model is laid out, in three-dimensional space identical with that of the three-dimensional model; and an output device, which is responsive to designation by a designating device of the plane displayed by the display control device in the same three-dimensional space as that of the three-dimensional model, adapted to output print data of the three-dimensional model and of the attribute information as viewed from a normal-line direction of the virtual plane designated.
According to another aspect of the present invention, an information processing apparatus comprises acquisition means for acquiring information relating to set state of an attribute layout plane in which attribute information concerning a three-dimensional model is laid out and generating means for generating auxiliary drawing information, which is for clarifying set position and set direction of the attribute layout plane that is output together with information relating to the attribute layout plane, based upon information relating to the setting information.
According to a further aspect of the present invention, an information processing apparatus comprises display means for virtually displaying planes, in which attribute information concerning a three-dimensional model is laid out, in three-dimensional space identical with that of the three-dimensional model and image control means for giving a higher priority to a feature line of the three-dimensional model than to a leader line of the attribute information if the feature line and the leader line overlap.
Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
A first embodiment of the present invention will be described in detail with reference to FIGS. 1 to 10D.
The information processing apparatus further includes the display unit 205 for displaying the shape of a 3D model and attribute information, etc., based upon the pixel data that is output from the image processing unit 204 on the basis of an instruction executed by the CPU 203. When the shape of the 3D model and attribute information are displayed on the display unit 205, the display zone can be decided using a CAD function such as zooming, panning and rotation. More specifically, the display zone can be decided by the position of a point of view with respect to the 3D model and by the line-of-sight direction (viewing axis) when the 3D model is seen from the point-of-view position, the viewing angle and the visual-field range (visual-field space) along the point-of-view direction, etc.
The information processing apparatus further includes an output unit 206 serving as a printer or plotter. In the flow of print processing, first the image data rasterized by the image processing unit 204 is stored temporarily in the RAM 201 and image data in a prescribed format obtained by conversion based upon processing by the CPU 203 is printed out on a recording medium such as paper. The printout is an output of image data such as bitmap data obtained utilizing the image data rasterized by the image processing unit 204. This data undergoes only simple processing and can be printed out in a short time.
An input unit 207 is constituted by a mouse and keyboard, etc., for applying commands to a CAD program. Further, an external connection device 208 connects the information processing apparatus to an external unit and is for performing an exchange of data between the apparatus and the external unit.
Drawing printout processing in this embodiment will be described from setting of attribute information in line with the flowchart of
First, at step S101, attribute layout planes 2a, 2b, 2c and 2d (see
Next, at step S102, the necessary attribute information such as dimensions is input, the attribute information is correlated with any of the attribute layout planes 2a to 2d and is placed at desired positions on the attribute layout planes 2a to 2d.
Next, at step S103, a scale that allows the shape of the 3D model 1 and attribute information to be seen clearly without being misunderstood is set for the attribute layout planes 2a to 2d. In this embodiment, a scale of 1:1 is set with regard to the attribute layout planes 2a, 2b, 2c, and a scale of 2:1 is set with regard to the attribute layout plane 2d that corresponds to the detailed view. The display and printout of the 3D model 1 and attribute information are executed based upon the scales set.
Further, calibration of the scale is performed before the scale is set. The calibration is carried out upon fixing the size of the view port that displays the 3D space of the display unit 205. The CAD program causes a line segment of known length to be displayed on the display screen in any display zone in 3D space, namely at any degree of zoom. The length of the desired line segment differs from the actual length depending upon the degree of zoom. The displayed length of the line segment is measured by an actual measuring rule and the result of measurement is input. The CAD program compares the result of measurement and the above-mentioned known length, thereby making the display zone a display zone that conforms to the scale.
For example, in a case where the result of measuring a line segment having a known length of 100 mm is 150 mm, the display is reduced by a factor of ⅔ vertically and horizontally by zooming. In other words, by setting the display zone of the 3D space to 1.5× vertically and horizontally, the length of 100 mm will be displayed on the display screen also within the 3D space so that a 1:1 display becomes possible.
Further, by changing the display zone from this state in accordance with various scales, displays conforming to various scales become possible. Further, by storing the display zone and the result of measurement in advance, a display conforming to scale becomes possible at any time. Furthermore, by-setting the size of characters or the like in the attribute information in inverse proportional to the scale, attribute information can be displayed at the same size irrespective of the scale when a display conforming to scale is presented.
For example, if the size of a character in attribute information is made 4 mm when the scale is 1:1 and 0.8 mm when the scale is 5:1, then the size of the characters in the display information will always be 4 mm when a display conforming to scale is presented. As a result, a display that is easy to read can be obtained.
The display state when the attribute layout planes 2a to 2d are displayed face-up is illustrated in
Next, at step S104, the layout zone within the 3D space of the attribute information that has been correlated with the 3D model 1 is calculated for each of the attribute layout planes 2a to 2d. The layout zone is calculated as a rectangular shape that encompasses the entirety of the 3D model 1 and correlated attribute information in a display state in which the attribute layout planes 2a to 2d are displayed face-up. For example, the area enclosed by the line in
This is followed by step S105, at which the apparatus selects, from the set scale and layout zone 3a, a recording medium such as paper having a print zone 4a (the solid line) of the smallest size that encloses the planar model indicated by the dotted line and the layout zone 3a of the attribute information. For example, in a case where the scale is 1:1 and the layout zone 3a is 215×410, as shown in
Further, in an attribute layout plane 2d that corresponds to the detailed view of
This embodiment is such that in the case of attribute layout planes 2a and 2b, a recording medium of size A3 corresponding to the print zones 4a and 4b is selected, and in the case of attribute layout planes 2c and 2d, a recording medium of size A4 corresponding to the print zones 4c and 4d is selected (
The set-up is such that the center of the layout zone 3a will coincide with the center of the print zone 4a of the selected recording medium (
Next, the print zone is displayed at step S106. That is, the print zones 4a to 4d are displayed as rectangles, for example, on the attribute layout planes 2a to 2d (
Next, any of the attribute layout planes 2a to 2d to be printed out is selected and specified at step S107. When the layout plane is selected and specified, the display state of the display screen may be any state. Specifically, the attribute layout plane is selected and specified irrespective of the line-of-sight direction that sets the display direction in 3D space, the direction of the normal to the attribute layout plane selected and the display zone decided by the visual-field range. For example, a drawing of the attribute layout plane to be printed can be selected in a display state of the view direction (the direction in which the 3D model is seen from a certain point of view), which is not parallel to to the direction of the normal line to the attribute layout plane, of the kind shown in
For example, the selection is executed by selecting the frame of an attribute layout plane (e.g., the frame of the attribute layout plane 2a in
Next, at step S108, the 3D model 1 as seen from the direction of the normal to the designated attribute layout plane (namely the attribute layout plane displayed face-up) and the attribute information that has been correlated with the attribute layout plane are printed out by an output operation using the print zone and stipulated paper size set at step S105. More specifically, image information within the print zone set on the attribute layout plane to be output is converted to a prescribed format in the image processing unit 204, after which the information is stored temporarily in RAM 201 and sent to the output unit 206, whereby the information is printed out using the set size of the recording medium. The image information of the 3D model at this time is printed on a recording medium of size A4 corresponding to the print zone 4a set based upon the scale. That is, the result of printout reflects the scale of the 3D model.
Here processing is executed such that the display of the attribute layout plane whose printout has been completed is given a color different from that of other attribute layout planes on the display screen (
Owing to size limitations on the display unit 205, there are cases where the entire print zone will not be displayed on the display screen if the display is presented in the scale that has been set on the attribute layout plane. In such cases the print zone is divided into two, four or nine sections, etc., and the image information in each divided zone is transferred to and output by the output unit 206.
Results obtained by printout performed for each of the attribute layout planes 2a, 2b, 2c and 2d are illustrated in
With regard to background in which the 3D model 1 and attribute information, etc., do not exist, the 3D model 1 and attribute information, etc., become more clearly defined by using the color white for the background, i.e., by printing out nothing for background. Further, if names 7a to 7d of the individual attribute layout planes are printed out by being incorporated in the print data when each of the attribute layout planes is printed out, it can be understood more efficiently which attribute layout plane is being displayed face-up in the result of printout.
In this embodiment, as described above, the desired drawing information can be printed out efficiently. In other words, a drawing to be printed out can be selected efficiently irrespective of the display state of the display screen, and the entirety of the 3D model and attribute information that prevails when the attribute layout planes are displayed face-up can be printed out in the desired scale and required size for each individual attribute layout plane.
Further, though there is no description regarding the resolution of the display unit 205 and output unit 206 in the above embodiment, these units can be applied in this embodiment regardless of resolution. For example, if the display unit 205 has 1280×1024 pixels horizontally and vertically, respectively, and the pixel size is 0.25×0.25 mm, the display screen of the display unit 205 will have a size 320×256 pixels horizontally and vertically, respectively, and the resolution will be approximately 100 dpi. A print zone of size A4 (297×210 mm) can be set for the display screen and a printout can be performed on a recording medium of size A4 by a output unit 206 having a resolution of 600 dpi, by way of example.
It should be noted that the result of printout at this time is an output equivalent to 100 dpi and there may be cases where this resolution is not satisfactory, depending upon the shape of the 3D model. In such cases the print zone is divided, image information prevailing when the divided zones are displayed in enlarged form is combined and the combined information can be printed in the size of the recording medium set at the output unit 206, thereby making it possible to obtain a printout corresponding to approximately 400 dpi.
For example, with the display unit 205, the print zone is divided into 4×4 or 16 sections, each section obtained by such division is enlarged by a factor of four to obtain display image information and the 16 sections are combined and printed out, whereby a printout corresponding to about 400 dpi can be obtained. When a display is presented at the scale set on an attribute layout plane, the above can be applied similarly also in a case where the entirety of the print zone cannot be displayed to fit the display screen. A printout having satisfactory resolution can be obtained as necessary, without a limitation on number of divisions, within the satisfactory limits of storage capacity available in the 3D-CAD apparatus inclusive of a memory prepared in the output unit 206.
Further, in the above embodiment, a printout is obtained utilizing image information in a case where a display is presented at the scale set on the attribute layout planes. However, since the print zone and the size of recording medium corresponding to the print zone have been set, the present invention can also be applied to a situation where image information within the print zone is converted to the size of the recording medium and then printed out at any zoom rate that displays the entire print zone.
In the above embodiment, the apparatus includes the image processing unit 204. However, the image processing function may be incorporated in the CPU 203.
Further, in the above embodiment, the scale of the attribute layout plane or the print zone is set after the attribute information is input. However, the present invention can be applied irrespective of the order of the above-mentioned operations. For example, the scale of an attribute layout plane may be set during the creation of the 3D model. Further, the operator can specify the print zone at any time. For example, the print zone can be set by specifying any position on an attribute layout plane, or a position relative to the 3D model, and the size of the print zone.
Further, in the above embodiment, it may be so arranged that the size of the print zone or the size of the corresponding recording medium is displayed. In this case, any display method may be used. For example, the name of a size or a numerical value indicating the size may be displayed in the vicinity of any of the four corners of the rectangle indicating the print zone, or these may be displayed inside the frame of the rectangle, or the size may be displayed temporarily when a pointer is situated in the vicinity of a line of the rectangle defining the print zone.
Further, in the above embodiment, the print zone is set based upon the scale set on the attribute layout plane. However, it may be so arranged that a print zone conforming to the scale is prepared in advance and the print zone is placed on the attribute layout plane.
Further, a printout may be performed upon reducing the set print zone as necessary.
Further, the specific color of image information, e.g., the color that expresses the ridge lines of a 3D model, may be subjected to so-called enhancement processing by the image processing unit 204. In enhancement processing, the pixels surrounding a pixel corresponding to the relevant color are changed to the relevant color and adopted as image information. As a result, the ridge lines of the 3D model can be printed out as bold lines, for example, and it is possible to obtain an error-free printout result that is easier to read.
In the above embodiment, image data such as bitmap data is output to the output unit 206. However, it may be so arranged that the image processing unit 204 generates a vector, which is the line segment of a raster, from the geometric data of a geometrical shape sent from the read-aloud-item identifying unit 203, and outputs the vector data.
A second embodiment of the present invention will be described in detail with reference to the drawings.
(Structure of Information Processing Apparatus and Flow of Operation)
Reference will be had to FIGS. 11 to 14 to describe the structure of the information processing apparatus and the flow of an operation for performing printout after attribute information is appended to a 3D model that has been created by the information processing apparatus.
First, when start-up of the CAD program is specified in response to an input operation by the operator using the input unit 207, the CAD program that has been stored in the external storage device 202 is read into the internal storage device 209 and the CAD program is executed by the CPU 203 (step S301).
Furthermore, by entering commands interactively through an input operation by the operator using the input unit 207, a shape model 1 of the kind shown in
Further, an attribute layout plane, which is a virtual plane for laying out attribute information such as dimensions and remarks, is created within the three-dimensional space in which the shape model is created in accordance with the input operation by the operator using the input unit 207 (step S303). In
A frame (double borders, a filled-in border), etc., is displayed on the display unit 205 as image information in such a manner that the position of the attribute layout plane is easy to discriminate. Further, a name is set on the created attribute layout plane and it is possible to present the display at a prescribed position of the attribute layout plane as a name label. The set information of the attribute layout plane is stored in the external storage device 202 in correlation with the shape model.
In accordance with the input operation by the operator using the input unit 207, design information such as dimensional tolerance, material name and machining instructions and management information such as part name and revision history is appended to the shape model of
Furthermore, the attribute information is correlated with attribute layout planes in accordance with the input operation by the operator using the input unit 207 (step S305). At this time, the attribute layout planes and the positions of the desired points of view, line-of-sight directions and magnification for the 3D model are correlated. By performing such correlation, the 3D model can be displayed based upon the set positions of the points of view, line-of-sight directions and magnification. Further, since the attribute layout planes and attribute information have been correlated, the attribute information that has been correlated with a specified attribute layout plane can be displayed selectively. Further, the information of the point-of-view position, line-of-sight direction, magnification and up direction in a case where an attribute layout plane is seen as a drawing is utilized also at the time of printout, described later. The information relating to display of attribute layout planes set as described above is stored in the external connection device 208.
The information relating to attribute information and attribute layout planes is stored in the internal storage device 209. It may be so arranged that the operator specifies an attribute layout plane in advance and appends attributes while correlating them with the attribute layout plane. Further, the correlating of the attribute information with the attribute layout plane can be set and cancelled by the operator using the input unit 207.
Next, display control is carried out for displaying or not displaying attribute layout planes specified in accordance with the input operation by the operator using the input unit 207 and the attribute information such as dimensional tolerance correlated with the attribute layout planes, or for adding on color (step S306).
The attribute information is stored in the external storage device 202, etc., in accordance with the input operation by the operator using the input unit 207 (step S307).
In accordance with the input operation by the operator using the input unit 207, the CAD attribute model obtained by appending the position information of the attribute layout planes, the display information of the attribute layout planes and the attribute information to the shape model is stored in the external storage device 202 (step S308).
Next, reference will be had to
First, the CAD program is started up by a procedure similar to that of step S301 described above (step S351).
Next, by entering commands interactively using the input unit 207, the operator reads a desired file into the internal storage device 209 from the external storage device 202 and displays the file on the display unit 205 as an image (step S352).
Execution of printing is specified in accordance with a command from the user who has confirmed the display on the display unit 205 (step S353).
When execution of printing is specified, information necessary for performing printout is acquired from the file read in at step S352 and the print information is displayed on the display unit 205 based upon the information acquired (step S354). The print information is print format information such as the printer used, number of print copies and page set-up, attribute information such as dimensions, material name, description, drawing border and drawing number, and printout information indicating whether or not to output auxiliary drawing information for clarifying set position and set direction of attribute layout planes.
The operator uses the display unit 205 to check the print information displayed at step S354 and determines whether the settings are acceptable (step S355). If a change or addition to settings has been specified, control proceeds to step S356, at which a change or addition to the settings is made based upon the input from the input unit 207. It may be so arranged that a change in settings of the attribute information is performed by making a change or addition to settings on the display screen of print information executed at step S354. If a change or addition to settings is unnecessary, control proceeds to step S357.
Next, on the basis of the settings finalized at steps S355, S356, data for output to an output unit such as the display unit or printer is generated (step S357).
The details of print information such as the auxiliary drawing information will be described later.
After the output data is generated, it is determined whether the operator has specified a check (preview display) on the display unit 205 of the state of printout in advance (step S358). If it is determined that a check has been specified, control proceeds to step S359; if not, control proceeds to step S361. Prescribed processing is applied to the output data generated at step S357 and a preview image is displayed on the display unit 205 at step S359 (see
It is determined whether the operator has commanded execution of print processing (step S360). If the operator has commanded execution of print processing, then control proceeds to step S361. On the other hand, if it is necessary to change a setting, control proceeds to step S356. Here the above-described processing for changing settings is executed again.
The output data generated at step S357 is subjected to prescribed processing at step S361. For example, print data such as bitmap data is output to a prescribed printer and printing is executed by the printer to thereby complete-processing. The output unit for executing printing may be the output unit 206 and it is also permissible to use another output unit connected to the CAD apparatus via a network line or the like.
The steps for printing out a 3D model to which attribute information has been appended will now be described in detail.
(Acquisition and Display of Print Information: Steps S352 to S357)
When execution of printing is specified by the operator as mentioned above, the information necessary for performing printout is acquired from the file read in, the print settings are made and output data is generated and printing executed based upon the settings. The acquisition and display of print information will be described first.
In
Designation of the printer to perform printout and setting of number of copies to be printed are performed in the print-format setting area 701a. The settings information has been stored in the internal storage device 209 or appended to the file read in. The operator confirms the print-format settings information and, when necessary, adds to or changes the settings from the input unit 207.
With regard to printout of attribute information appended to the read-in file as attribute information, settings are checked item by item in the printout setting area 701b and, when necessary, adds to or changes the settings from the input unit 207.
A dimensions/remarks items being indicated in the printout setting area 701b relate to attribute information that has been appended to the shape elements such as the planes and ridge lines of the 3D model and correlated with the attribute layout planes. The various items of drawing description, machining command, material information, drawing border and management information relates to attribute information that has been appended to the 3D model. These items of attribute information are stored as one file together with the shape data of the 3D model.
Further, the drawing list and auxiliary drawing information is information generated from the settings on the attribute layout planes set for the 3D model. These items of information may be stored in a file together with the shape data of the 3D file in a manner similar to that of the attribute information or may be generated when printing is executed or when the preview display is presented. The drawing list and auxiliary drawing information will be described in detail later.
If the setting of print information is completed by the above-described operation, the output data is generated based upon these settings.
The drawing list will now be described.
If the printing of a drawing list is selected in the setting of print information described above, the drawing list is generated from the settings information of the attribute layout planes correlated with the 3D model. More specifically, the names of the attribute layout planes are acquired and the drawing list is generated in accordance with an order that has been set in the CAD program in advance.
The order of the drawing list may be set for every type of drawing, such as projection view, sectional view and partially enlarged view. For example, in case of projection views, the set order of the drawings may be front view, plan view, right-side view, left-side view, bottom view and back view, and the ones for which relevant attribute layout planes exist may be listed up in accordance with this order. In case of sectional views, the views may be set in alphabetical order starting from A-A. In case of partially enlarged views, the views may be set in order of ascending numerals (see
In the printout setting area 701b in this embodiment, the set-up is such that an attribute layout plane selected for printing is displayed as ON in the list, and an attribute layout plane not selected for printing is displayed as OFF in the list. Accordingly, even in a case where only some of the attribute layout planes are printed out from among the plurality of attribute layout planes set for the 3D model, the presence of all of the attribute layout planes that have been set can be ascertained from the list.
Further, as shown in
In a case where an attribute layout plane is a sectional view in the setting of the parental relationship described above, the attribute layout plane that displays the cutting line indicating the cutting position of the cross section is the parent. Usually, with regard to the upper side in a case where an attribute layout plane corresponding to a sectional view is viewed as the drawing, the attribute layout plane that has been set parallel to the upper side and in the direction opposite to the sight line is set as the parent attribute layout plane. Further, in the case of a partially enlarged view, an attribute layout plane that displays an area to be enlarged is the parent in a two-dimensional drawing. Usually, an attribute layout plane that has been set in same plane as the parent attribute layout plane and in the same sight line direction is set as the parent attribute layout plane. The setting of parental relationship of the attribute layout plane is filed as setting information of the attribute layout plane in a manner similar to that of the attribute information.
(Generation of Auxiliary Drawing Information)
This embodiment is such that when attribute layout planes onto which a 3D model has been projected and the attribute information are output, auxiliary drawing information, which is for clarifying the set positions and set directions of the attribute layout planes, is output together with the information relating to the attribute layout planes based upon the state of the settings regarding the attribute layout planes set for the 3D model. The auxiliary drawing information will now be described.
The flow for generating the auxiliary drawing information will be described with reference to
If the printing of an auxiliary drawing is selected in the above-described setting of print information, information relating to an attribute layout plane that has been set for a 3D model is acquired from information stored previously. More specifically, settings information of an attribute layout plane serving as a reference is acquired. That is, line-of-sight direction (a direction that enables verification of the 3D shape model and dimensions projected onto the attribute layout plane from a certain point of view, this direction being perpendicular to the attribute layout plane) and information relating to vertical orientation when the attribute layout plane is viewed as a drawing are acquired (step S501).
The attribute layout plane serving as the reference is set in advance. In this embodiment, the attribute layout plane of the front view is adopted as the attribute layout plane serving as the reference (referred to as the “reference attribute layout plane” below). In a case where an attribute layout plane of a front view has not been set for a 3D model, it will suffice to perform calculations by referring to the attribute layout plane of a plan view or of a side view, etc. Permutations of an attribute layout plane referred to and method of calculation corresponding to each attribute layout may be set in advance.
Next, two types of isometric views are generated at steps S502, S503. An isometric view is an equiangular projection view. This is a projection method in which a solid is projected with the X, Y, Z axes of three-dimensional space being viewed at respective ones of equal angles, namely at intervals of 120°. Accordingly, in order to display projection surfaces in six directions of a 3D model (front view, plan view, right-side view, left-side view, bottom view and back view), it is necessary to set isometric views viewed from at least two directions.
In this embodiment, the settings are such that isometric views in two directions illustrated in FIGS. 21B, 21C are generated for a 3D model 2 illustrated in
The display directions of isometric views are not limited to those of this embodiment. The method may be changed in accordance with the shape of the 3D model, the attribute information appended to the 3D model and the settings and structure of the attribute layout planes that correlate the attribute information. Further, the operator may make settings interactively from the input unit 207. Furthermore, it may be so arranged that isometric views of three of more directions (types) are set. The isometric views generated are stored temporarily in the internal storage device 209.
Next, at step S504, setting information of attribute layout planes for which the printout of auxiliary drawings has been specified in the above-mentioned attribute information settings is acquired from among the attribute layout planes that have been correlated with the 3D model. The setting information that is acquired is the name of the attribute layout plane set in advance, the set position, the line-of-sight direction (direction of the normal line) with respect to the 3D model and information relating to vertical orientation in a case where the attribute layout plane is viewed as a drawing.
Next, from among the plurality of isometric views generated at steps S502, S503 utilizing the settings information acquired at step S504, an isometric view suited to the set position and set position of the attribute layout plane to be printed out is selected in at step S505 in accordance with a command from the operator.
Next, at step S506, a pattern display indicating the set position and set direction of the attribute layout plane is generated and added to the isometric view selected at step S505.
In this embodiment, it is so arranged that the mode of clarifying the auxiliary drawing is changed based upon the setting of the attribute layout plane in order that the set position and set direction of the attribute layout plane will be transmitted reliably to the processes downstream. More specifically, the pattern display and mode of displaying the isometric views are changed for every type of attribute layout plane of a trigonometric projection, sectional view and partially enlarged view, etc.
The setting of mode of display will be described with reference to FIGS. 22 to 27.
As shown in
The attribute layout planes 601 to 606 among these attribute layout planes are attribute layout planes that correspond to a trigonometric projection view. The attribute layout planes 601, 602, 603, 604, 605 and 606 are indicative of a front view, plan view, right-side view, left-side view, bottom view and back view, respectively.
The attribute layout plane 607 is one that corresponds to a sectional view, and the attribute layout plane 608 is one that corresponds to a partially enlarged view. The attribute layout plane 607 has a line-of-sight direction that is parallel to the Y axis of the coordinate system 5a of the 3D model, the up direction in a case where the plane is viewed as a drawing is set parallel to the Z axis, and the plane is placed on an axis that is at the center of a cylindrical hole 610a provided in the 3D model 5.
The attribute layout plane 608 has a line-of-sight direction that is a direction opposite the direction of the Z axis, and the up direction in a case where the plane is viewed as a drawing is set in a direction opposite the direction of the X axis. Furthermore, the attribute layout plane 608 is placed in a plane identical with the attribute layout plane 602 and is set such that a projection 610b provided on the 3D model 5 will be included in the display zone. An auxiliary
Auxiliary drawing information shown in FIGS. 23 to 27 is generated based upon the above-described settings and procedure.
First, reference will be had to
An isometric view 611 has been generated by the processing described above. A pattern display 601a is for clarifying the set position of the attribute layout plane 601. In
Next, the attribute layout plane 604 corresponding to the left-side view will be described.
Isometric views 611 and 612 have been generated by the processing described above. Pattern displays 604a and 604b are indicative of the line-of-sight direction and the up direction when the attribute layout plane is viewed as a drawing. The attribute layout plane 604 has its line-of-sight direction set in such a manner that the inward side of the display screen will be directed toward the front side when the 3D model 5 is displayed in the attitude of the drawing. In the example of
Reference will be had to
It should noted that the mode of displaying the auxiliary drawing information of the cross section is not limited to that of this embodiment. For example, the display may be presented as shown in
In
Next, reference will be had to
The above description relates to an example of attribute layout planes set in line-of-sight directions, which are parallel to any of the X, Y, Z axes of the coordinate system 5a of 3D model 5, and in the up direction. However, the present invention is also applicable to attribute layout planes (which correspond to so-called two-dimensional auxiliary projection views) set in line-of-sight directions, which are not parallel to (i.e., which are oblique) to the X, Y, Z axes, and in the up direction when the attribute layout plane is seen as a drawing. In this case, it will suffice to adopt a setting such that isometric views will be displayed in two directions by processing similar to that in a case where auxiliary drawing information is created based upon the setting of the attribute layout plane 604 corresponding to the left-side view.
Further, isometric views different from those mentioned above may be generated based upon a relationship among the point of view and line-of-sight direction of an attribute layout plane, the up direction when the attribute layout plane is viewed as a drawing and the coordinate system of the 3D model.
The auxiliary drawing data that has been generated by the above processing is stored in the internal storage device 209 temporarily to complete the generation of auxiliary drawing data for a certain attribute layout plane.
Next, whether an attribute layout plane for which auxiliary drawing data has not been generated exists is determined (step S508). If such an attribute layout plane exists, the processing of steps S504 to S507 is repeated, auxiliary drawing data of all attribute layout planes for which printout of auxiliary drawings has been specified is generated and processing is completed.
As mentioned above, the generated auxiliary drawing data is generated as output data for output to an output unit such as a display unit or printer together with other print information. Depending upon a judgement made by the operator, a preview image displayed on the display unit 205 is checked as necessary, after which the image is printed out by executing prescribed processing. As shown in
(Output of Print Data)
An example of result of printing that has been output by the above processing will be described.
In a case where a number of attribute layout planes have been set for a 3D model, it will suffice to output them on a page separate from the cover page.
Further, printout data generated by the above-described process may be stored as a file together with the 3D model or it may be so arranged that only the output data is filed.
Further, since the printout data is in a data format that can be handled by an ordinary personal computer, it is possible to perform the printout in an environment that is devoid of a CAD apparatus.
A third embodiment of the present invention will now be described in detail with reference to the drawings.
First, at step S601, attribute layout planes 120a, 120b, 120c (
Next, at step S602, the necessary attribute information such as dimensions is input, each item of attribute information is correlated with any of the attribute layout planes 120a to 120c and the attribute information is placed at desired positions on the attribute layout planes 120a to 120c (see
Next, at step S603, a scale that allows the shape of the 3D model 100 and attribute information to be seen clearly without being misunderstood is set for the attribute layout planes 120a to 120c. In this embodiment, a scale of 1:1 is set with regard to the attribute layout planes 120a, 120b, 120c. The display and printout of the 3D model 100 and attribute information are executed based upon the scale set.
Next, at step S604, the layout zone within the 3D space of the attribute information that has been correlated with the 3D model 100 is calculated for each of the attribute layout planes 120a to 120c. The layout zone is calculated as a rectangular shape that encompasses the entirety of the 3D model 100 and correlated attribute information in a display state in which the attribute layout planes 120a to 120c are displayed face-up. For example, the area enclosed by the line in
This is followed by step S605, at which the apparatus selects, from the set scale and layout zone 130a, a recording medium such as paper having a print zone 140a (the solid line) of the smallest size that encloses the planar model indicated by the dotted line and the layout zone 130a of the attribute information.
The set-up is such that the center of the layout zone 130a will coincide with the center of the print zone 140a of the selected recording medium (
Next, at step S606, the print zone 140a is displayed on the attribute layout plane 120a as the line of a rectangle indicative of the print zone (
Next, any of the attribute layout planes 120a to 120c to be printed out is selected and specified at step S607. Here the plane 120a is selected as the selection candidate.
Next, at step S608 in response to a print command from the operator, the 3D model 100 as seen from the direction of the normal to the designated attribute layout plane and the attribute information that has been correlated with the attribute layout plane are printed out based upon the print zone and stipulated paper size set at step S605. More specifically, image information within the print zone set on the attribute layout plane to be output is converted to a prescribed format in the image processing unit 204, after which the information is stored temporarily in RAM 201 and sent to the output unit 206, whereby the information is printed out using the set size of the recording medium. The image information of the 3D model 100 at this time is printed on a recording medium of size A4 corresponding to the print zone 140a set based upon the scale. That is, the result of printout reflects the scale of the 3D model.
In this print processing, feature-line priority processing is executed. This is processing for placing a ridge line, which is a feature line of the 3D model, in front of the leader line of the attribute information. For example, in
In
Next, at step S703, in relation solely to the 3D model 100, hidden-surface removal processing is executed by a well-known technique referred to as the so-called Z buffer method (Z buffering) in the image processing unit 204 with respect to the line-of-sight direction.
Next, at step S704, portions that can be checked among the ridge lines of the 3D model 100 from the line-of-sight direction are extracted by processing in the CPU 203 with respect to the result of hidden-surface removal. The result of extraction is stored temporarily in a RAM 201, etc.
This is followed by step S705, at which the attribute information and the leader lines of the attribute information are written over the result of hidden-surface removal by processing in the image processing unit 204 through a method similar to that of the Z buffer method. In the state that prevails after overwrite, the attribute information and the leader lines 10a to 10h of the attribute information, inclusive of attribute information extension line 100f overlapping the ridge line of the 3D model 100, are capable of checked at a priority higher than that of the 3D model 100.
Next, at step S706, the visible ridge lines of the 3D model 100 stored temporarily at step S704 are written over the result of overwrite of attribute information (extension lines). Owing to the overwrite processing, all of the visible ridge lines of the 3D model 100 are in a state in which they are printed at a priority higher than that of the leader lines 100a to 100h of the attribute information. The image information in this state, namely the image as seen from the normal-line direction of the attribute layout plane 120a, is
Next, at step S609, the image information that has undergone feature-line priority processing is transferred to the output unit 206. The latter prints out the image information transferred in the size of the recording medium selected in advance.
The result obtained by printing out the attribute layout plane 120a is illustrated in
In the above-described embodiment, feature-line priority processing is executed according to the flowchart of
The result of hidden-surface removal processing relating to the 3D model at step S803 is stored in RAM 201 at step S804. The attribute information and the leader lines of the attribute information are overwritten while reference is had to color information of each item of pixel data that is the result of hidden-surface removal processing. That is, if the color information of the pixel data has the color of ridge lines of the 3D model, overwrite is inhibited; if it has a color other than this, overwrite is carried out. The visible ridge lines of the 3D model can be maintained as image information by executing such processing for all pixels. Thus, the present invention is not limited to the method of feature-line priority processing and is applicable to any method.
In accordance with this embodiment as described above, the ridge lines of a 3D model are printed at a higher priority than that of the leader lines of the dimensions. As a result, the shape of the model can be readily ascertained from the drawing.
For example, with regard to the 3D model 100 of
With the structure of the conventional information processing apparatus described above, a case where an attribute layout plane is observed from the direction of a certain point of view and a case where the leader lines of attribute information are situated in front of the 3D model are conceivable.
For example, in
The reason for this is as follows: In order to express a detailed shape or the like in the pixel data that is output from an information processing apparatus to a display unit, the line thickness of both the ridge lines of the 3D model and the leader lines of the attribute information is one pixel. This means that the ridge lines of the 3D model situated in back are not displayed.
As a result, there is the danger that the operator may misinterpret the shape of the 3D model. For example, in the display or printout of
If the third embodiment is applied, however, such a detrimental effect can be eliminated.
As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims,
This application claims priorities from Japanese Patent Application No. 2003-372457 filed on Oct. 31, 2003, Japanese Patent Application No. 2003-380078 filed on Nov. 10, 2003 and Japanese Patent Application No. 2003-382684 field on Nov. 12, 2003, the entire contents of which are hereby incorporated by reference herein.
Number | Date | Country | Kind |
---|---|---|---|
2003-372457 | Oct 2003 | JP | national |
2003-380078 | Nov 2003 | JP | national |
2003-382684 | Nov 2003 | JP | national |