Need help, definition 3d solid - stuck on the roof

I'm trying to define a 3d solid to represent a simple building with a roof, as shown in this image. I'm working through the examples of the [space Developer Guide | http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_objrelschema.htm#CBBGAJFH]
] .
My plan is to define the main part of the building in the form of solid with 6 surfaces. This part works fine. Then, I want to define the structure of the roof in the form of solid with 5 surfaces. Then, I'll use SDO_UTIL. ADDED to put it together.

I'm stuck on the roof!

There are 5 areas:
-the base of the roof (A)
-the first slope of roof (B)
-the first sprocket (C)
-the second slope of the roof (D)
-the second gear (E)
See image here.
So I defined as follows:
INSERT INTO geometry_examples (name, geom) VALUES
(
  'Roof of house',
  SDO_GEOMETRY
  (
    3008,             -- SDO_GTYPE set to 3008 for a Simple Solid
    NULL,             -- No coordinate system
    NULL,             -- No data in SDO_POINT attribute
    SDO_ELEM_INFO_ARRAY(
      1, 1007, 1,          -- Descriptor for a single solid 
      1, 1006, 5,          -- 5 composite surface elements
                    -- element triplets to follow
      1, 1003, 1,     -- bottom of the roof - i.e. the flat bit (rectangle)
      6, 1003, 1,     -- east roof slope (rectangle)
      11,1003, 1,     -- north gable end (triangle)
      15,1003, 1,     -- west roof slope (rectangle)
      20,1003, 1      -- north gable end (triangle)
    ),
    SDO_ORDINATE_ARRAY
    (
     4,0,2, -- bottom of the roof (rectangle) Surface A
     4,2,2,
     2,2,2,
     2,0,2,
     4,0,2,
     4,0,2, -- east roof slope (rectangle) Surface B
     4,2,2,
     3,2,4,
     3,0,4,
     4,0,2,
     4,2,2, -- north gable end (triangle) Surface C
     2,2,2,
     3,2,4,
     4,2,2,
     2,2,2, -- west roof slope (rectangle) Surface D
     2,0,2,
     3,0,4,
     3,2,4,
     2,2,2,
     2,0,2, -- north gable end (triangle) Surface E
     4,0,2,
     3,0,4,
     2,0,2
     )
  )
);
But when I validate I get:
SQL> select SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(geom, 0.005) 
from geometry_examples;

SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(GEOM,0.005)
------------------------------------------------------------------------------------------------------
13355 Point:0,Edge:0,Ring:0,Polygon:0,Comp-Surf:0,Solid:0,Multi:1,
Any ideas where I'm wrong here?

Hi Reggie.
13355 error means that sdo_ordinate_array is not grouped by number of dimensions grouped due to bad indices in your elem_info_array. I tried the following:

SDO_GEOMETRY
(
3008,-SDO_GTYPE 3008 for a Simple solid value
NULL,-no mark
NULL, no data in the attribute SDO_POINT_TYPE
() SDO_ELEM_INFO_ARRAY
1, 1007, 1,-descriptor for a single solid
1, 1006, 5,--5 composite surface elements
-Triple element to follow
1, 1003, 1, - the bottom of the roof - i.e. the flat Wick (rectangle)
16, 1003, 1,-the slope of the roof is (rectangle)
31,1003, 1,-North gable (triangle)
43,1003, 1,-the slope of the roof (rectangle) West
58,1003, 1 - North gable (triangle)
),
SDO_ORDINATE_ARRAY
(
4,0,2,--Bas of the Surface (rectangle) roof has
4.2.2,
2,2,2,
2,0,2,
4,0,2,
4,0,2,--La slope of the roof (rectangle) is Surface B
4.2.2,
3,2,4,
3,0,4,
4,0,2,
North 4,2,2,--Pignon (triangle) Surface C
2,2,2,
3,2,4,
4.2.2,
2,2,2,--La (rectangle) roof pitch Surface D West
2,0,2,
3,0,4,
3,2,4,
2,2,2,
North 2,0,2,--Pignon (triangle) Surface E
4,0,2,
3,0,4,
2,0,2
)
)

I was then 54502 which means that the solid is not closed. The solid must be closed volume.
You can set this geometry as a collection as follows:

SDO_GEOMETRY
(
3004,-SDO_GTYPE 3008 for a Simple solid value
NULL,-no mark
NULL, no data in the attribute SDO_POINT_TYPE
() SDO_ELEM_INFO_ARRAY
-1, 1007, 1,-descriptor for a single solid
1, 1006, 5,--5 composite surface elements
-Triple element to follow
1, 1003, 1, - the bottom of the roof - i.e. the flat Wick (rectangle)
16, 1003, 1,-the slope of the roof is (rectangle)
31,1003, 1,-North gable (triangle)
43,1003, 1,-the slope of the roof (rectangle) West
58,1003, 1 - North gable (triangle)
),
SDO_ORDINATE_ARRAY
(
4,0,2,--Bas of the Surface (rectangle) roof has
4.2.2,
2,2,2,
2,0,2,
4,0,2,
4,0,2,--La slope of the roof (rectangle) is Surface B
4.2.2,
3,2,4,
3,0,4,
4,0,2,
North 4,2,2,--Pignon (triangle) Surface C
2,2,2,
3,2,4,
4.2.2,
2,2,2,--La (rectangle) roof pitch Surface D West
2,0,2,
3,0,4,
3,2,4,
2,2,2,
North 2,0,2,--Pignon (triangle) Surface E
4,0,2,
3,0,4,
2,0,2
)
)

Can I get 54518 which means shared composite surface edges are not oriented correctly.
Finally, I've also got rid of 1006 to elem_info_array to get rid of this last error and:

SDO_GEOMETRY
(
3004,-SDO_GTYPE 3008 for a Simple solid value
NULL,-no mark
NULL, no data in the attribute SDO_POINT_TYPE
() SDO_ELEM_INFO_ARRAY
-1, 1007, 1,-descriptor for a single solid
-1, 1006, 5,--5 composite surface elements
-Triple element to follow
1, 1003, 1, - the bottom of the roof - i.e. the flat Wick (rectangle)
16, 1003, 1,-the slope of the roof is (rectangle)
31,1003, 1,-North gable (triangle)
43,1003, 1,-the slope of the roof (rectangle) West
58,1003, 1 - North gable (triangle)
),
SDO_ORDINATE_ARRAY
(
4,0,2,--Bas of the Surface (rectangle) roof has
4.2.2,
2,2,2,
2,0,2,
4,0,2,
4,0,2,--La slope of the roof (rectangle) is Surface B
4.2.2,
3,2,4,
3,0,4,
4,0,2,
North 4,2,2,--Pignon (triangle) Surface C
2,2,2,
3,2,4,
4.2.2,
2,2,2,--La (rectangle) roof pitch Surface D West
2,0,2,
3,0,4,
3,2,4,
2,2,2,
North 2,0,2,--Pignon (triangle) Surface E
4,0,2,
3,0,4,
2,0,2
)
)

It validates well.

There are a few rules of solids that we listed in the Handbook of spatial use and book of Pro Oracle Spatial 11g.
I can also recommend you to read the next book to understand the geometry in Oracle Spatial 3D validation rules:
"On the three-dimensional geometries valid and invalid. If you can't find it, please let us know.

If you need to qualify this 3008 geometry, you will need to correct the direction and close the volume of solid geometry. It is also a need to define a solid simple i.e. gtype 3008 with etype from 1007 and which is not cut in two independent volumes. If you define two or more solids, you can use the collection, composite solid or multi solid rules.

Please let us know if you have any other questions.

Beautiful House :)

Best regards
Baris

Tags: Database

Similar Questions

  • [NEED HELP] Acer B1-730HD stuck on the USB logo

    After update my Acer B1-730HD kitkat... The problem seen is dat what acer B1-730HD stuck on the USB logo. I'm looking for solution on google for a few days to view, not yet found how flashing a rom for Acer B1-730HD. I am very disappointed with your service as acer do not DOWNLOAD on the Web site's original rom. Now, I need original rom for Acer B1-730HD, please!

    Sorry to hear that you have this problem after the update of your tablet.

    You try to run a factory data reset.

    1. Turning off the tablet.
    2. Press and hold the Volume up button, which is located closer to the touch screen lock switch.
    3. With the Volume up button which is held, press in and hold the Power button for 3 seconds, then release it. Continue to hold the Volume up button.
    4. Once the tablet screen lights up, release the Volume up button.
    5. In the select the Boot Mode screen, select [SD picture Mode of update]. Use the Volume and Volume keys to navigate through menus and use the power button to select the desired option.
    6. On the Android system recovery screen, select wipe data / factory reset.
    7. When you are prompted to confirm deletion of all user data, select Yes - delete all user data.
    8. On the Android system recovery screen, select reboot system now. Your data will be erased.
    9. Your tablet will restart and go to the Welcome screen. Follow the steps on the screen to configure your tablet.
  • The product I bought doesn't work! I need help and I was stuck in your 'contact us loop' for the last few days and I'm frustrated. How can I contact you for help!

    The product I bought doesn't work! I need help and I was stuck in your 'contact us loop' for the last few days and I'm frustrated. How can I contact you for help!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a product used by corporations long dead, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (Please check your invoice, as Adobe have a lot of similar products), and we may be able to direct you. Good luck!

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • I need help to unite 2 users on the same CC account, can someone help me?

    I need help to unite 2 users on the same CC account, can someone help me?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <==> NOTE DAYS AND TIME

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • I need help about illustrator. I have the portable version of CS6, install and won't let me open the program. I get the error: 1 I have windows 7

    I need help about illustrator. I have the portable version of CS6, install and won't let me open the program. I get the error: 1 I have windows 7

    Error code 1 is often associated with permission issues. Have you tried to install Illustrator in a new user account with admin rights? If you want to download CS6, here's how to get it through creative cloud: html http://helpx.adobe.com/creative-cloud/kb/download-previous-versions-creative-applications.

    Let us know how it goes.

    Concerning

    Stéphane

  • All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but did need help how to get rid of the pre-selection, so he's going to defau

    All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but need help how to get rid of the preset then all photos of goes to Default or in the shot. Thank you

    Go to the develop module and highlight all the images in the film at the bottom of the screen. Enable automatic synchronization, and then click the reset button. To reset all the images in your camera default settings.

  • Need help to provide a page for the Oracle PeopleSoft HCM on internet

    Hello

    I need help to provide that a page of Oracle PeopleSoft HCM on internet for vacancies may be available for recruitment. How can I provide a Peoplesoft Web page?

    TKS

    Bruno will read

    Of Peoplebooks

    Access to external Sites

    External candidates, by definition, do not have the nicknames PeopleSoft. To allow external users access to a site, you put a link to the site on a location such as your public Web site. The site definition includes a field to set the URL of this external link.

    Deployed in this mode, the instance of PeopleSoft to be accessed by external users must have the appropriate security settings to allow users to bypass the access code. In other words, a user who clicks on the link is not presented with a PeopleSoft signon pages but is instead signed the using a user ID generic comments so that the user can be taken directly to the candidate Gateway.

    If an external candidate allows a more inactive candidate gateway session that the timeout you set, the default system behavior is to provide a link to the login page of PeopleSoft with the visible invited user ID.  According to your logic of password, the guest user ID might be locked if the applicant tries in vain to connect. For more security and ease of use, replace the code page to a page that displays an appropriate message.   For example, to display a message that the session has expired and provide a link back to the bridge of the candidate.

    Development of Sites

  • Need help with XP installed. stuck at: Intel Matrix Storage Manager Driver

    I bought a new laptop 2.0 ghz with blah blah vista but I want to change to XP.

    I have
    bought a new copy of XP and I'm ready to go, then first question was in
    installation the screen says cannot find the installed hard drive.

    I have
    then found some wire somewhere I've lost that said to buy a
    external floppy drive and downloaded this floppy driver thingy that I
    need to go beyond this stage from the toshiba Web site...

    FYI driver name: SA200 ACHI F6-1017-XP

    That
    well work... when he said press F8 if you agree to install XP I almost
    wet me anyway after it formatted the drive it asked me this:

    Insert the diskette labeled:

    * Intel Matrix Storage Manager Driver *.

    in drive A:

    * Press ENTER when ready

    WTF tell you laptop? can someone help me please you after this point?

    :-(:-(, I want only XP is installed.

    So far its been like 3 weeks since I tried to install it

    Post edited by: IamMILOS

    You just need to install a driver, Intel Matrix Storage Manager.
    As the name said it s an Intel driver and can be found on the Intel page or you can download it from the European driver Toshiba page too.
    Check your area driver books and search for storage manager or package of robson.

    I recommend also to search in this forum for similar discussions on Intel Matrix Storage Manager Driver.

    Good bye

  • Need help for reading in parallel on the same interface and writing XNET

    Hello. I need help to configure CAN interface to write and read from the same interface.

    I use NI PXI-8513/2. I use CAN1 as interface.

    My had TO send status messages CAN every 100ms. I have to read in order to return akntoowlege to keep DUT CAN interface happy and not make mistakes.

    So, I want to open Strim Session and readall frames in the loop. At the same time, I need to be able to write in a frame HAD at the time...

    I only need to read one picture at a time too, but since I know the ID, I can pull it from the stream.

    What I'm confusing all is how to put in place the same CAN1 interface to be able to write and read in parallel.

    I think I would get errors that interface is already in use.

    Since I'm new to CAN, I was read and write only when necessary. But, sometimes I was getting errors on my messages. Sometimes I get message, sometimes miss me. But, when I run CAN test criminal as sniffer he sends and written every time. I was told it's because it recognizes all messages.

    I opened to suggestions of how best to implement the interface.

    I guess I can use CAN2 and separator to work around this problem, but I would use an interface if possible.

    Thank you

    Hi Rus,

    The XNET hadrware takes care of most of the low level of detials for you. The reading and writing of the circuits are both connected to the bus at any time. When you write to the hardware it will try to put a frame on the bus at the first opportunity he can. If the frame loses arbitration material re - will attempt to send the frame up is successful. Reception equipment monitor activity on the bus, regardless of what it conveys. The material received will usually throw a framework that was sent by communication equipment, but there is an Echo property pass to circumvent this behavior too.

    Take a look at the example of the expedition: MAY-> NI - XNET-> Sessions-> multiple Sessions Intro-> CAN even exit entry framework Port unique Point.vi. Keep in mind that this example you will need to use a second CAN interface to recognize frames, it transmits. I would recoment against the example CAN output Frame Single Point which would mimic your ECU if you choose a type of cyclic frame running this example.

  • Need help setting bios to boot from the cd. I did already but the laptop does not start again for cd player.

    Hello

    I forgot that my administration windows log password after the holidays.  I have loaded down a free program called Ophcrack and had set my laptop to boot from cd 1 but I just cannot get the laptop to boot from a cd.  He just continued boot from the internal hard disk.

    The cd is an image and it is bootable on my desk.

    The model of laptop: laptop HP ENVY m6

    Product number: C2N77UA #ABL

    BIOS version: F.25

    Processor type: Intel Core i7-3632QM CPU @ 2.20 GHz

    OS: Windows 8.1

    I only did a password reset disk (I'm learning the hard way now!).

    I don't want to do a "System Recovery" because I have some data on it.

    I realize there are paid there password recovery tools windows, but I would like to use this 'free' program to try to break 1.

    I just need help / instructions to set the bios for laptop can be started from a cd.  I also tried to boot from a key USB but the laptop kept begin its internal drive.

    Help, please.  Thanks a ton!

    Ted

    Hi Ted,

    You are welcome

    Boot into the bios menu and go to the very section where you have disabled the Secure Boot.

    Find an entry called materials and this value to Activate.

    Save the changes and exit the bios.

    Follow the previous procedure below:

    Insert the bootable disc of Ophcrack and laptop stop.

    Tap away at the esc you key start Notepad to open the Start Menu.  Select boot options ( f9 ), use the arrow keys to select the CD/DVD drive and press ENTER.  You can also get a prompt to "Press any key to" continuous - it if requested.

    Kind regards

    DP - K

  • Helps to remove a stuck in the printer memory card

    Original title: stuck in the printer memory card
    How can I recover a photo memory card that is stuck in the printer HP PHOTOSMART7600. I have several slots and when I tried one that looked like it would fit, it passed through and then as I tried to solve this problem, it just went over and I can't get out.  I did worse.  Any help would be appreciated.

    Hello allyson nola.

    You may be able to contact a repair provider or HP:

    http://WWW8.HP.com/us/en/support-drivers.html

    Let us know if you have any questions.

    Best regards

    Matthew_Ha

  • Need help Kodak 5500 AiO printer over the network.

    I have a kodak 5500 AiO printer. I have vista on all my computers (1 bureau and 3 laptops). I downloaded the sp2 for vista on all computers, after I downloaded sp2 desktop mouse and keyboard froze, I had to uninstall sp2 to make it work. Now the printer on my home network to print or not be discovered by my laptop. I can see the printer on the network to my laptop but I can't connect to it. The printer is on the desktop via a usb cable. I deleted the printer drivers and reinstalled and downloaded the software and drivers for the latest printer.  I need help.

    Thank you

    Phil

    original title: using network printer

    Everyone,

    That's what I had to do to get my printer working once Vista it has messed up. You do the first two steps on the computer to which the printer is connected. The last step that you do for your laptop or you want to connect the printer to the main computer. I hope this helps.

    Hey all,.

    We had this same problem...

    We had to follow the procedure proposed by Drompa...

    > 1) share permissions
    >> 1. In explorer, select C:\windows\system32\spool\PRINTERS
    >> 2. Make a right click, properties
    >> 3. Tab sharing
    >> 4. Advanced sharing
    >> 5. Check "share this folder".
    >> 6. Permissions
    >> 7. Grant everyone full control
    >>
    (> NTFS permissions 2)
    >> 1. In explorer, select C:\windows\system32\spool\printers
    >> 2. Make a right click, properties
    >> 3. Security tab
    >> 4. Edit
    >> 5. Add
    >> 6. Advanced
    >> 7. Find now
    >> 8. Select 'NETWORK '.
    >> 9. Ok
    > 10. Total control of the NETWORK grant

    AND THEN we had to install local printers, using the port trick...

    1. go to 'printers '.
    2. click on "add a printer".
    3 Add a local printer.
    4. "create a new Port.
    5. use the "Local Port" option
    6. on "Enter a Port name" enter: "\\Computername\Printername".

    And if all goes well should do!

    Good luck!

    Credit to Drompa and otherdreams to help out me.

    Phil

  • Need help with custom script to rename the layers

    Hello world.

    I need help to write a custom script (because I suck at it) that will allow me to go through all the layers and sous-calques for a specific name ('X') and give it a new specific name ('Y').

    I have had success using the script below, but it does not work on any text layers names where the text layer was previously particularly well-known in 'X' and now changed needs.

    Any help is greatly appreciated.

    * Note: this script was originally used to find any layer with 'Copy' in its name and remove with anything after (to correct the problem of duplication of layers by adding this text).

    This is why the function is named removeCopy. It works for renaming layers also - just not a layer of text unfortunately.

    #target illustrator

    function removeCopy() {}
    If (app.documents.length == 0) return;
    var app.activeDocument = docRef;
    recurseLayers (docRef.layers);
    }
    removeCopy();
    function recurseLayers (objArray) {}
    for (var i = 0; i < objArray.length; i ++) {}
    ObjArr [i] .name = ObjArr [i].name.replace (/ \s*current name\s*\d*/, 'new name');
    If (objArray [i] .layers) recurseLayers (. layers.length > 0 ObjArr [i]);
    }
    }

    I finally found something after searching forums for a week. My confusion was related to the way Illustrator treats real layers against text/path/object "layers." Instead of layers, I had to use the pageItems in the script. The code below works. Thanks to Gustavo for his answer in another thread and Carlos I thank you for this looking too good! You're great to be ready to help models do more advanced things with Illustrator.

    var doc = app.activeDocument;
    var items = doc.pageItems;
    for (var g = 0; g)
        elements [g] .name = elements [g].name.replace ('Century Schoolbook text line', ' MonogramText: Century Schoolbook ");
    };
    App.Redraw ();
  • Need help to configure Auto-start for the database

    Hello

    DB version: 11.2
    OS: RHEL 5

    Please help me
    I want to configure the database and listener in auto-start during the startup process of the operating system.

    Concerning

    Step 1 of the oracle user

    CD $ORACLE_HOME/bin
    VI dbstart
    VI dbshut

    changed the

    LISTENER_ORACLE_HOME = $1

    TO

    LISTENER_ORACLE_HOME = $ORACLE_HOME

    Step-2 of the root user

    VI /etc/init.d/dbora

    #! / bin/sh

    Oracle # these scripts runs the listner and Oracle database server.
    #
    # chkconfig: 345 81 81
    Description #: this is the Oracle
    #

    # Define ORA_HOME as equivalent to the ORACLE_HOME
    # from which you want to run dbstart and
    # dbshut
    # the value ORA_OWNER to the userid of the owner of the
    # Oracle in ORA_HOME Server

    ORACLE_HOME=/U01/app/Oracle/product/10.2.0/Db_1
    ORA_OWNER = oracle

    If [! f $ORACLE_HOME/bin/dbstart]
    then
    echo "Oracle startup: cannot start.
    Output 1
    FI

    case '$1' in
    'Start')

    # Run Oracle databases:
    # The following command assumes that the oracle connection will encourage not the
    user # all values

    known - $ORA_OWNER - c "start ORACLE_HOME/bin/lsnrctl $".
    Su - $ORA_OWNER-c "$ORACLE_HOME/bin/dbstart.
    ;;
    'stop')

    # Stop the Oracle databases:
    # The following command assumes that the oracle connection will encourage not the
    user # all values

    known - $ORA_OWNER - c "judgment of $ORACLE_HOME/bin/lsnrctl.
    Su - $ORA_OWNER-c "$ORACLE_HOME/bin/dbshut.
    ;;
    ESAC

    Exit 0

    Note: Please check your ORACLE_HOME

    Step-3 of the root user

    chmod 755 released
    chkconfig released on

    VI/etc/oratab
    ORCL:/U01/app/Oracle/product/10.2.0/Db_1:Y

    Step 4 Test the automatic start of the root user

    stop /etc/init.d/Dbora
    stop /etc/init.d/Dbora

    Or

    Restart the server

    You can also view
    http://www.Oracle-base.com/articles/Linux/automating-database-startup-and-shutdown-on-Linux.php
    http://docs.Oracle.com/CD/E11882_01/server.112/e10839/strt_stp.htm#BABGDGHF

Maybe you are looking for