What means about word 'island' in MDL function 'mdlElmdscr_intersectShapes'?

Status
Not open for further replies.

foo

Usenet Archive
Joined
Sep 9, 2001
Messages
144
Reaction score
0
Hi, MDL expert

I recently need to use MDL function 'mdlElmdscr_unionShapes', 'mdlElmdscr_intersectShapes' and 'mdlElmdscr_differenceShapes'. But in MDL reference manual about these fucntions description, there is always a word 'island' puzlled me. And I guess that the argument 'MSElementDescr *obsoleteEdP' should be written as 'MSElementDescr
**obsoleteEdPP'. When I use any type of shape, the result are always returned in 'insideEdP' not any in 'obsoleteEdP'. Am i correct?

Any help are appreciated!

Special Thanks to Mr. Jon Summers and Mr. Steve Young. You are always give me great help. Sorry for my English.

Foo.
 
Foo,

'Island' refers to an open area that would be enclosed by the the two shapes. In the graphic below the 'X' is in an island.

shape 1:
|--------------|
| | shape2:
| ++++++++++++++++++++
| + | +
| +++++++++++++ +
| | + +
| | X + +
| | + +
| +++++++++++++ +
| + | +
| ++++++++++++++++++++
| |
|--------------|

According to mselmdsc.fdf, 'MSElementDescr *obsoleteEdP' is the correct syntax.

Dan

On 10 Dec 2001 00:51:19 -0800, (foo) wrote:

Hi, MDL expert

I recently need to use MDL function 'mdlElmdscr_unionShapes', 'mdlElmdscr_intersectShapes' and 'mdlElmdscr_differenceShapes'. But in MDL reference manual about these fucntions description, there is always a word 'island' puzlled me. And I guess that the argument 'MSElementDescr *obsoleteEdP' should be written as 'MSElementDescr
**obsoleteEdPP'. When I use any type of shape, the result are always returned in 'insideEdP' not any in 'obsoleteEdP'. Am i correct?

Any help are appreciated!

...
 
Mr. Dan

Thank you for your kind response. But when I union your two shapes, the result is all in 'insideEdP', it is a group (orphan cell). The whole insideEdP's structure is as following:

cellHdr-->complex shape-->linestring-->linestring-->NULL | | V V NULL complex shape(hole, X part)-->linestring-->linestring-->NULL | V NULL

My Microstation version is 07.01.04.10

Foo.
 
Foo,

I took a closer look at the online help and wrote a small bit of test code and I get exactly the same results as you. I tried all three boolean functions and obsoleteEdPP always contained a NULL value.

The help says that outputEdPP was renamed to *obsoleteEdPP. I think it is safe to ignore this variable since, as its' name implies, it is obsolete (no longer used).

I hope I didn't steer you too far out of your way with my first post. I should have looked at it closer before posting.

Hmm, I wonder how accurate this post is? <g>

Dan

On 11 Dec 2001 22:28:40 -0800, (foo) wrote:

Mr. Dan

Thank you for your kind response. But when I union your two shapes, the result is all in 'insideEdP', it is a group (orphan cell). The whole insideEdP's structure is as following:

cellHdr-->complex shape-->linestring-->linestring-->NULL | | V V NULL complex shape(hole, X part)-->linestring-->linestring-->NULL | V ...
 
Dan MacNeil wrote:
Foo,

I took a closer look at the online help and wrote a small bit of test code and I get exactly the same results as you. I tried all three boolean functions and obsoleteEdPP always contained a NULL value.

The help says that outputEdPP was renamed to *obsoleteEdPP. I think it is safe to ignore this variable since, as its' name implies, it is obsolete (no longer used).

I hope I didn't steer you too far out of your way with my first post. I should have looked at it closer before posting.
...

I think the method of representing holes in shapes using nested element descriptors (with the hole attribute set) is a fairly new one.

Back in the olden days the only way to represent this was using a separate chain of hole shapes. The mdlPattern_area function still accepts a separate holes argument. I guess that back then, a simple 'fill' operation on the result was not possible.

Steve
 
Status
Not open for further replies.

Latest threads

Back
Top