Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Volume objects define 3D entities by extending surface objects. To create a volume object, you need to connect two or more surface objects that have the same number of points.

Example Syntax:

...
<O T="Volume"
...
...
</O>

There are three methods to create a volume object:

  1. By specifying a thickness value for a surface object

  2. By connecting a line object and a surface object

  3. By connecting two different surface objects.

Example:

<O N="VolumeObject1" T="Project" Category="3D Geometric Objects" TransAlignRule="Right">
    <!-- created by ParamML Examples on 01.02.2023 -->
    <O N="Prsm1" T="Surface" Thickness="20" Y="80">
        <O T="Point" X="0" Y="0" Z="0" />
        <O T="Point" X="20" Y="0" Z="0" />
        <O T="Point" X="20" Y="20" Z="0" />
        <O T="Point" X="0" Y="20" Z="0" />
    </O>
    <O N="Prsm2" T="Line" Y="50">
        <O T="Point" X="0" Y="0" Z="0" />
        <O T="Point" X="0" Y="0" Z="50" />
        <O N="Section" T="Section">
            <O T="Shape">
                <O T="Point" X="-2" Y="-2" />
                <O T="Point" X="2" Y="-2" />
                <O T="Point" X="2" Y="2" />
                <O T="Point" X="-2" Y="2" />
            </O>
        </O>
    </O>
    <O N="Prsm3" T="Volume">
        <P N="w" V="20" />
        <O T="Surface" Z="0">
            <O T="Point" X="-w" Y="-w" />
            <O T="Point" X="w" Y="-w" />
            <O T="Point" X="w" Y="w" />
            <O T="Point" X="-w" Y="w" />
        </O>
        <O T="Surface" Z="25">
            <O T="Point" X="-w/2" Y="-w/2" />
            <O T="Point" X="w/2" Y="-w/2" />
            <O T="Point" X="w/2" Y="w/2" />
            <O T="Point" X="-w/2" Y="w/2" />
        </O>
    </O>
</O>

To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=3D+Geometric+Objects&obj=objid71pnngfe1y80ae039z10d)

The order and number of points in the two surfaces are critical when creating a volume object. If the points are defined in a different order for the lower and upper surfaces, the connecting lines will form a diagonal line between the points, leading to an incorrect appearance.

It's also important to ensure that both surfaces have the same number of points. If the number of points is different, the matching points will combine, while the remaining unmatched points will be left exposed.

Example:

<O N="VolumeObject2" T="Project" Category="3D Geometric Objects" TransAlignRule="Right">
    <!-- created by ParamML Examples on 01.02.2023 -->
    <O N="WrongPrism1" T="Volume" Y="50">
        <O T="Surface" Z="0">
            <O T="Point" X="10" Y="-10" />
            <O T="Point" X="10" Y="10" />
            <O T="Point" X="-10" Y="10" />
            <O T="Point" X="-10" Y="-10" />
        </O>
        <O T="Surface" Z="25">
            <O T="Point" X="-5" Y="-5" />
            <O T="Point" X="5" Y="-5" />
            <O T="Point" X="5" Y="5" />
            <O T="Point" X="-5" Y="5" />
        </O>
    </O>
    <O N="WrongPrism2" T="Volume">
        <O T="Surface">
            <O T="Point" X="10" Y="-10" />
            <O T="Point" X="10" Y="10" />
            <O T="Point" X="-10" Y="10" />
            <O T="Point" X="-10" Y="0" />
            <O T="Point" X="-10" Y="-10" />
        </O>
        <O T="Surface" Z="30">
            <O T="Point" X="5" Y="-5" />
            <O T="Point" X="5" Y="5" />
            <O T="Point" X="-5" Y="5" />
            <O T="Point" X="-5" Y="-5" />
        </O>
    </O>
</O>

To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objid2geiywza70kl99birr5c9)

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.