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:
By specifying a thickness value for a surface object
By connecting a line object and a surface object
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) |
0 Comments