Adding width to a QuadArray

Is it possible to specify width to a QuadArray?
LineAttributes object works fine for LineArray.. but not for QuadArray.. at least i couldnt do it..
If someone knows how to do this i'd apreciate very much.. i wanna add windows to my 3d room and its ridiculous to have a window with the default width of the QuadArray.
Thanks

QuadArray is not necessarily a rectangle, it can form an arrow head or any four-point irregular shape. There is no such sure thing as a QuadArray width that is constant along a side. Picture an arrow head pointing up in your mind.
See the "Creating Geometry" chapter of the tutorial.
To make your window, I'd create a class Window that extends QuadArray. You'd then pass it a width, height, and location, encapsulating the 4 vertex creations.
I hope this helps.
-Tom

Similar Messages

  • How do I create Fixed-Width Report Regions in APEX?

    Hi
    I would like to create 3 or 4 report regions of uniform fixed-width on a single APEX page.
    How do I go about this?
    Each report varies in the number of columns and the width of columns.
    Thanks
    Kind Regards
    Greg

    Hello,
    Customize your region template by adding width property.

  • CSS layout - how to get 100% height

    I'm starting with a Dreamweaver template (2 column elastic,
    left sidebar, header and footer). It's set up in CSS so that there
    is a div container with a few other divs inside it. I want 100%
    width and height. In the CSS for the container, I added width: 100%
    and height: 100%. Width is now 100%, but height is not responding.
    This is the only code I changed from the original template.
    Any idea how to get my height to 100%?
    Thanks!

    Google "Faux columns".
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "OxfordFishSalon" <[email protected]> wrote
    in message
    news:fvd5b0$t6k$[email protected]..
    > Also, saw this post in another thread, which seems
    helpful, but It'd be
    > great
    > if someone could elaborate on these methods a bit (faux
    columns?):
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Sorry Snake, that's not a reliable method for a number
    of reasons, not the
    > least of which is that if you have a window height that
    causes the content
    > to be scrolled, the content will escape its box.
    >
    > Faux columns is the most reliable method to use,
    although there are
    > image-less methods using negative margin and padding
    that will also work.
    >
    > --
    > Al Sparber - PVII
    >
    http://www.projectseven.com
    > Extending Dreamweaver - Nav Systems | Galleries |
    Widgets
    > Authors: "42nd Street: Mastering the Art of CSS Design"
    >
    >
    > "SnakEyez02" <[email protected]> wrote
    in message
    > news:fl1ak3$9o5$[email protected]..
    > > Check out this post:
    > >
    > >
    http://www.webmasterworld.com/forum83/200.htm
    > >
    >
    >
    >
    >
    >

  • How can I get the window to expand when the TOC is shown?

    Hello all,
    We have changed our javascript call to open WebHelp in a narrow window. By design and by default, the TOC does not initially show.
    When the "Show TOC" button is clicked, we wish for the window to expand to accomodate the navigation pane. As it is, the two pains will share the narrow window, making things unuable until the user manually resizes the window. Not exactly user-friendly.
    By default, the Help window opens at 290 X 745.
    When the nav pane is expanded, we'd like the window size to become 570 X 745 to accomodate the added width of the TOC.
    Thanks in advance for the advice!

    Do you mean running Firefox in full screen mode?
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then you can hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can also run Firefox in a maximized window to have easier access to the Menu bar and Navigation Toolbar.

  • Unable to size a pop-window that redirects to a regular url using dynamic PL/SQL

    Hello,
    I have an instruction like this in a pluggin:
    begin
        htp.p('<font size="3" color="FireBrick">Cannot find? Search on </font>' || '<a href="http://www.google.com" target="_blank"><font size="4" color="FireBrick"><b>Google</b></a>');
    end;
    It displys the Google page in another window.
    How can size the wiindow? For example adding width=200, height=100 to the href tag doesn't  help....
    Do I need to use JavaSvript?
    If yes, can someone provide me with an example?
    Thanks by advance for any tip.
    Kind Regards.

    use this
    begin
        htp.p('<font size="3" color="FireBrick">Cannot find? Search on </font>' || '<a href="http://www.google.com" onclick="window.open(this.href, ''new_win'',
    ''width=400,height=500''); return false;"><font size="4" color="FireBrick"><b>Google</b></a>');
    end;
    let me know if this answers your query in the current thread

  • If I buy the Apple app. Numbers, will I then be able to open my spreadsheet documents marked cwk?

    Many of my old documents were written on older systems which now won't open in Lion.  Word processed docs will open with Pages, and I wonder whether I will be able to open old spreadsheets if I buy the Numbers app without loss of layout, etc.

    Numbers '09 can open AppleWorks spreadsheets created with AppleWorks 6. It cannot open files created with earlier versions of AppleWorks (or ClarisWorks), nor can it open AW 6 files that are not spreadsheets.
    Maintenance of layout/format depends on Numbers supporting the same format options as Appleworks. For example, Numbers (and other current Apple applications will not support bold or italic text in fonts that do not include these variations within the font set. AppleWorks (and other applications of that generation would also construct representation of bold and italic typefaces using added width or a slant to characters in the Regular font set.
    Regards,
    Barry

  • Youtube embedding problems

    Hello, I am having problems when embedding a youtube video into my website.
    I put the embed code in the place I want it, and all seems fine before I preview in Dreamweaver (I previewed in all major browsers and had the same problem)
    Once I hit the preview button my browser pops up and takes an extraordinarily long time to load. Minutes compared to the seconds it took before the code was inserted into my webpage. Then once it has finally loaded, I get a big white box rather than an actual youtube video. I am very confused as I can see no reason for this problem.
    I have tried both the new and old embed codes and it still gives me this white box. Any help would be useful.

    This is what I use
    <iframe class="youtube-player" src="http://www.youtube.com/embed/btKeORv8PyM"></iframe>
    I find that by adding width, height, frameborder and allowfullscreen, the Validator arcs up. Use CSS instead.

  • My wordpress page displays with elements covering one another only in Firefox. Chrome and IE are fine if IE is switched to compatibility mode

    I am working on a Wordpress page, theme developed by a custom developer (not me). When we view the page in Chrome and IE it is fine - although we had to modify compatibility settings in IE to get it to look right. In Firefox, we are having the same problem we had in IE before the fix - the boxes in the body of the page are laying under the sidebar items. The page was laid out as a table to allow elements to align properly.
    http://www.whoholdsthecardsnow.com/coaching-2/ is the page we are having problems with. The other pages load fine, so I am assuming that it is the table layout that is causing the problem.
    I don't see any way to attach documents so I can't show you what it is doing for me.
    Help please!

    Adding width:100%; to that image seems to work.
    max-width: 100%; doesn't seem to work in Firefox.
    <pre><nowiki><img class="alignleft size-large wp-image-503" width="1024" height="680" alt="coachingtop" src="http://www.whoholdsthecardsnow.com/wp-content/uploads/2014/07/coachingtop-1024x680.png" style="width: 100%;"></nowiki></pre>

  • Can't get white background

    I want every container to have a white background. No matter
    what I do the child panel gets a gray background. I've tried every
    combination of backgroundColor, backgroundGradient,
    backgroundAlpha, etc. that I can think of.
    Here's one try, using styleName="plain", which is supposed to
    create a white background. The application outside the panel is
    white, but the panel is gray.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    styleName="plain"
    dropShadowEnabled="false">
    <mx:Panel title="Panel" dropShadowEnabled="false"
    backgroundColor="#FFFFFF">
    <mx:HBox>
    <mx:Button label="Button" />
    </mx:HBox>
    </mx:Panel>
    </mx:Application>
    I'm pretty sure I didn't have this problem with beta 3.
    Please, any method that gets a pure white background would be
    appreciated.

    With your sample, I tried adding
    width="50%" height="50%"
    to the <mx:Panel> tag, and then I saw that the main
    content area of the panel
    did in fact have a pure-white background; but the title area
    and border area
    of the panel are gray. With your original sample, the entire
    content area is
    filled with the button, and the button itself has a gray
    background, so it
    makes it appear as if the backgroundColor attribute had no
    effect, when in
    fact it did have an effect.
    If you also want to set the title & border area of the
    Panel to white, I found
    that I was able to do that with
    borderColor="#ffffff"
    And there is also borderAlpha, which defaults to 0.4.
    - Mike

  • Script or Action - Make image square

    Need to add this to an action, rather than making all images square manually before batching them all.
    - All 500+ images are various sizes both portait, landscape and possibly square already.
    - They are all cropped tightly around the product with a white background.
    So currently: I just use canvas size, anchor to the centre and change the smallest pixel dimension to make it square, so none of the product is cropped.
    Any ideas?
    I couldn't get JJMack's aspect ratio script to help me.
    Automate -> Fit Image will take it to 1000 pixels but still won't be square.
    EDIT: Oh my. I just found this, looks like it'll do the job. Will test some more in the morning.
    var savedRuler= app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var w = app.activeDocument.width;
    var h = app.activeDocument.height;
    if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
    if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
    //if w==h already square
    app.preferences.rulerUnits = savedRuler;

    I have a need for this script as well...is this the entire script?  If not, can you post the complete script?
    I just need to increase either the canvas width (as white area for the added width/height) or the canvas height to match the longest side of an image so they they are perfectly square.  No cropping or reduction in image sizes.  These are product images on white background.
    Is this the full script?
    var startColor = app.backgroundColor; 
    if(startColor.rgb.hexValue != 'FFFFFF'){ 
    var white = new SolidColor(); 
    white.rgb.hexValue = 'FFFFFF'; 
    app.backgroundColor = white; 
    var savedRuler= app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var w = app.activeDocument.width;
    var h = app.activeDocument.height;
    if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
    if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
    //if w==h already square
    app.preferences.rulerUnits = savedRuler;
    if(white != undefined) app.backgroundColor = startColor; 

  • Some Problems in Using Region Containers

    Hi,
    I have some problems in using region container which looks like bugs to me :
    1- I added 2 Item Regions to one group in app def and dragged some items into them.Then, I decided to have a region container and arrange these 2 item regions horizontally. I added a Region Container and drag the 2 Item Regions into it. in this case, all the fields in these Item Regions disappeared and I did not have control over them.
    2- If I first create a Region Container and then put a region item in it and then drag some attributes into region item everything will be fine but if I change my mind and decide not to have region container and drag region item from region container into regions, again all fields in the region item will disappear.
    3- I created a region container and added 2 region items to it and dragged some items into them. I set the layout style to horizontal and set the width of region container to 100% but I realized that regardless of width value I set, the page arrangement was always the same. I investigate the jspx file and found out that the width of region container was not set. I added width="$JHS.current.regionContainer.width" to "<afh:tableLayout" section in horizontalRegionContainer.vm and it then worked fine. I believe that this part is forgotten to be in the vm file.
    Best Regards,
    Navid

    Navid,
    regarding 1 and 2: This only happens when you add items to an item group and start to drag and drop the item region BEFORE you click the Apply button. If you click the Apply
    button before you move item groups around, it works fine.
    3: yes, this is a bug, we will add fix in next release. Thanks for reporting.
    Steven Davelaar,
    JHeadstart team.

  • Scrollable APEX chart legends

    I'm using various apex charts for a dashboard application, and am utilizing the legend. However, on some of the charts, the dynamically generated legend has numerous items that exceed the height of the chart region. I noticed a scrollable tag in the xml, which would be ideal, but when I set it to yes it just displays a non-functioning scroll bar, and adding width and heighth parameters doesn't seem to change anything. Does anyone have any suggestions for this?
    Thanks!

    You can't get axis scale variables to work in the APEX declaritive GUI because it's not designed for that. You will have to switch to custom XML.
    Set everything you want -- that you can set -- because once you switch to XML, if you switch back I think you lose all those custom settings. Then when you set Custom to "Yes", drag the window widget to enlarge the window so you can edit more easily.
    Find the y_xis section of the XML.
            <axes>
              <y_axis >
                <scale   mode="Normal"    />
                <title>
                  <text>Directory Size (Gigabytes)</text>
                  <font family="Tahoma" size="16" color="0x000000" />
                </title>
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x000000" />
                  <format><![CDATA[{%Value}{numDecimals:1,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="True" interlaced="false">
                    <line color="Black" />
                  </major_grid>
    <minor_grid enabled="True">
                  </minor_grid>
              </y_axis>You want to change the scale line between <y_axis>   </y_axis> to
    <scale mode="Normal"  maximum="100" minimum="0" />Or maybe it's just <scale maximum="100" minimum="0" />Except instead of constants, you want variables. I'm not sure you can use bind variable (:P7_YMAX, :P7_YMIN) you may have to use (#YMAX#, #YMIN#) variables.
    I would make a new page and experiment with some VERY simple data -- maybe constants in a SELECT -- SELECT ..., 1, 2, 3 from dual ...... until you get what works.
    And, again. This assumes you decide on some computation to compute the values of (:P7_YMAX, :P7_YMIN) or (#YMAX#, #YMIN#) you want it to use.
    Howard

  • CSS display in Dreamweaver vs. IE

    The following code in Dreamweaver shows "an example of"
    vertically, instead of horizontally as it does in IE. It can be
    fixed in Dreamweaver by adding "width: 150px;", but I would like to
    see if anyone can help me understand why Dreamweaver isn't
    displaying this the same as IE. Thanks, Rob
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Positioning</title>
    <style type="text/css">
    .big {
    font-family: Helvetica, Arial, sans-serif;
    font-size: large;
    font-weight: bold;
    </style>
    </head>
    <body>
    <div style="position: absolute; left: 125px; top: 75px;"
    class="big">
    This is the first line of text being positioned.
    <div style="position: absolute; left: 25px; top:
    30px;">
    This is <span style="position: relative; left: 10px; top:
    30px; width: 150px;">an example of</span> a second line.
    </div>
    </div>
    </body>
    </html>

    It looks exactly the same to me in DW8, IE6, and FF1.5.0.6.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Rob in AZ" <[email protected]> wrote in
    message
    news:ec86me$i1i$[email protected]..
    > The following code in Dreamweaver shows "an example of"
    vertically,
    > instead of
    > horizontally as it does in IE. It can be fixed in
    Dreamweaver by adding
    > "width: 150px;", but I would like to see if anyone can
    help me understand
    > why
    > Dreamweaver isn't displaying this the same as IE.
    Thanks, Rob
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Strict//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    > charset=iso-8859-1" />
    > <title>Positioning</title>
    > <style type="text/css">
    > .big {
    > font-family: Helvetica, Arial, sans-serif;
    > font-size: large;
    > font-weight: bold;
    > }
    > </style>
    > </head>
    > <body>
    > <div style="position: absolute; left: 125px; top:
    75px;" class="big">
    > This is the first line of text being positioned.
    > <div style="position: absolute; left: 25px; top:
    30px;">
    > This is <span style="position: relative; left: 10px;
    top: 30px;
    > width:
    > 150px;">an example of</span> a second line.
    </div>
    > </div>
    > </body>
    > </html>
    >
    >
    >
    >

  • CC 9.2 (trial) - issues with rasterised objects in ePUB

    hi all
    We currently use CS5.5 to create our ePUBs and that works well for us, now we know and work around its quirks. I'm playing with the demo of CC (9.2) since I am interested in the pop-up footnotes.
    As a test I have opened up some old docs I had prepared in CS5.5 into CC. They contain images with some text on top which we have grouped and (in CS5.5) set to be rasterised and sided "Relative to Page Width". This means they fill the width of the page, even if the device is rotated/software window resized. Which I what I want to happen. I output an ePUB from CC and these images now are way too big and are not being sized to fit the screen. Looking in the CS5.5 code ID was adding width=100% to the img tag but CC is not. When I check the Object Export Options the size option is now "Relative to Text Flow" (not "Relative to Page Width").
    What does "Relative to Text Flow" actually mean? I can't find anything about it in the help files. I hate Adobe help files these days - all I can find is a page which claims to cover CS5.5, CS6 and CC but how can that be if CC is different in this respect from CS5.5 & CS6! 
    Anyone know how I can get ID to behave as it did previously? I know I can fix it in the code but obviously the less I do of that the better.
    thanks,
    Iain

    I don't have time to research an answer to your question but I can give you a link to changes in InDesign CS6, CC 9.0 and CC 9.2. There have been a ton of changes.
    Here is a link to changes in InDesign CS6:
    https://helpx.adobe.com/indesign/using/export-content-epub-cs6.html
    Here are links to changes in InDesign CC 9.0:
    https://helpx.adobe.com/indesign/using/epub-enhancements-indesign-cc.html
    Here are more changes in InDesign CC 9.2:
    InDesign_EPUB_Changes_CC_9.0_to_9.2.pdf

  • Dynamic Embeded Assets

    So I have a class with a bunch of embedded assets for my
    project. I now want to re-use this same code base for another
    project and dynamically switch out these dynamic assets depending
    on the project. Is there a way to insert a variable in the source
    of these embedded assets.
    [Embed(source=myBackground)]
    [Bindable]
    public static var background:Class;
    I

    did you try adding width/height attributes to the image.  they say the img tag is experimental still, so with the symbol reference it might not know the width and height to use, it still displays properly (the image piece only) but the rest of the html text doesn't know how to deal with it?

Maybe you are looking for

  • Memory leaks- high memory usage svchost.exe

    hello! im having a kind of a similar problem. Im using a Q6600 with 4Gb of RAM running on Windows 7 x64. My physical memory usage history is 1.75GB idle but my CPU usage looks good ~ 0%. In Windows Task Manager when i arranged the memory column, the

  • Calling a Stored Procedure with output parameters from Query Templates

    This is same problem which Shalaka Khandekar logged earlier. This new thread gives the complete description about our problem. Please go through this problem and suggest us a feasible solution. We encountered a problem while calling a stored procedur

  • OBIEE installation error: file EmctlCommon.pm.template not found

    I'm installing OBIEE 11.1.1.6.0 on Linux Centos. I have this error running the installer "/app/MiddlewareOracle/middlewarehome/oracle_common/bin/EmctlCommon.pm.template not found" /app/MiddlewareOracle/middlewarehome is my installation home directory

  • Late 2009 Mini: FireWire port - what size is it?

    All I know is that the normal FireWire cable I have doesn't fit in the mini,s port.  Googling suggests that there exist 8,9,4, and 6 pin variants of FireWire, although it doesn,t state whether those correspond to different form factors.  Apple tech s

  • POR: Changes on Purchase Order Response after saving

    Hi SRM Gurus, I'm currently working with SRM_SERVER 500(SAPKIBKS09) release, I'm not able to change(or delete) an POR once it has been saved. Normaly as an Purchaser I should be able to do that. Is that a std system behavior. FYI - The following POR