Hi Fabrice,

THanks, would this still work with nested objects?



On Mon, Nov 30, 2009 at 11:20 AM, Fabrice3D <[email protected]> wrote:

> Hi Quinrou,
> just add the object sceneposition...
> var myposition:Number3D = new Number3D();
>
> myposition.x = f.v0.x+m.sceneposition.x;
> --> repeat for each vertexes in face
> or
> myposition.rotate(myposition, m.sceneTransform);
>
> Fabrice
>
>
>
>
> On Nov 30, 2009, at 12:01 PM, quinrou . wrote:
>
> Hi,
>
> I was wondering if someone could possibly help with this. Perhaps I have
> not explained what I am after very well.
>
> the documentation says that a vertex has its coordinates local to the its
> parent object.
> If i create a plane of 200x200 and move it of 300 unit on the x axis. the
> vertex.x of the top left corner of the plane is -100. Which is fine since
> the coordinate are locale to the parent container.
> Now what I'd like is a function that allows to pass the vertex and get the
> values to the scene coordinate so I request the value value of vertex.x I'd
> get the value 200.
>
> Does that make sense? A sort of localToGlobal function...
>
> Thanks
> S
>
>
> On Fri, Nov 27, 2009 at 8:39 PM, quinrou . <[email protected]> wrote:
>
>> i meant : that's NOt what I am after... :)
>>
>>
>> the vertices are relative to the local coordinates of the parent mesh
>> object, right?
>> I'd like to get the vertices of a 3d object relative to the scene
>> coordinate. So I am wondering if there's a an easy way to do that?
>>
>> thanks
>> S
>>
>> On Fri, Nov 27, 2009 at 5:38 PM, quinrou . <[email protected]> wrote:
>>
>>> that's what I am after...
>>>
>>> the vertices are relative to the local coordinates of the parent mesh
>>> object, right?
>>> I'd like to get the vertices of a 3d object relative to the scene
>>> coordinate. So I am wondering if there's a an easy way to do that?
>>>
>>> thanks
>>> S
>>>
>>>
>>> On Fri, Nov 27, 2009 at 4:40 PM, Fabrice3D <[email protected]> wrote:
>>>
>>>> t = view.camera.transform
>>>>
>>>>
>>>>
>>>> On Nov 27, 2009, at 5:35 PM, quinrou . wrote:
>>>>
>>>>  Hi,
>>>>>
>>>>> Vertices coordinates are relative to the local coordinates of the
>>>>> parent mesh object.
>>>>>
>>>>> How can i get a vertex coordinate relative to the scene ordinate?
>>>>>
>>>>> Is there an easy hook somewhere to get the value(s) from?
>>>>>
>>>>> S
>>>>>
>>>>
>>>>
>>>
>>
>
>

Reply via email to