MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-8  …  209-228  229-248  249-268  269-288  289-308  309-328  329-348  …  369-372

From: Michael Gibson
30 Nov 2020   [#269] In reply to [#268]
Hi Tudor,

> 1. knowing 2 coordonates is it possible to make a frame ? accordigly to http://moi.maxsm.net/ it
> needs 3 (as it is from bbox to frame)

Well 2 points does not identify a unique frame, the 2 points can form a z axis direction for the frame but there is nothing that locks down the x/y axis directions to a single answer. Depending on what you need it can be possible to do something like the AutoCAD arbitrary axis algorithm (link) where you take a fixed direction like the world z axis and use cross product of that and the z axis to produce an x axis.

If you want the 2 points to be an axis to rotate around, you could try the RotateAxis command or factory, that takes 2 points instead of a frame and then a rotation angle and the rotation will be around the direction vector between those 2 points.


> 2. if upper is true wich will be (z) knowing x & y, next hotkey for flipping axis ()

Sorry I don't understand this one.


> 3. if they are other scrips for rotation ?

ScriptArray:
http://moi3d.com/forum/index.php?webtag=MOI&msg=5595.18

RotateArray:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9710.5

RotateAndExtrudeFace:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8126.34

- Michael
From: Cemortan_Tudor
14 Mar 2021   [#270]
any plans for opensubd ?
an example https://youtu.be/gzyO8S5FLUU?t=181
From: Michael Gibson
14 Mar 2021   [#271] In reply to [#270]
Hi Tudor, yes I do plan on supporting OpenSubdiv style edge weighting imported through FBX format.

- Michael
From: Cemortan_Tudor
2 May 2021   [#272]
Ohayo !
wanna ask about techincal aspects hiding behind cad modeling
what's the reason to have always a solid shape ? why can't be done a bool operation of a plane and a surface knowing the plane normals ?
From: Frenchy Pilou (PILOU)
2 May 2021   [#273] In reply to [#272]
I believe it's essentially for Print 3D : you must have a thickness different than "0"
so a solid and not a simple plane surface who can't exist in the reality! ;)

And some practical for know how cost some volumes of materials for building or what is the density of something! ;)

But in Moi you can make Boolean operations with plane, surface with thickness = "0" !
From: Michael Gibson
2 May 2021   [#274] In reply to [#272]
HI Tudor,

re:
> why can't be done a bool operation of a plane and a surface knowing the plane normals ?

That's because MoI is designed to try and not behave differently depending on which direction an open surface happens to have as the "positive" normal direction.

The booleans are based on working with solids. If you are working on all surfaces you should use the Trim command instead of booleans usually.

- Michael
From: Cemortan_Tudor
8 May 2021   [#275]
ohayo
dragging points from a curve doesn't snaps to points of the same curve
From: Michael Gibson
8 May 2021   [#276] In reply to [#275]
Hi Tudor,

> dragging points from a curve doesn't snaps to points of the same curve

Yes, that's intentional to avoid having consecutive points get stacked up on top of each other too easily, such stacking degrades some of the mathematical properties of the curve and can cause problems.

- Michael
From: Cemortan_Tudor
12 May 2021   [#277]
ohayo !
have a rectangle, wanna draw a small chamfer - at a good zoomout.
Q: It impossible draw without disabling snapping ? i'm asking about an option for snap distance !
From: Cemortan_Tudor
12 May 2021   [#278]
Trim
t - trim add point
s - trim single segment ( can crash if not selected from object that was separated, idk how to fix)
added
c - join curves after deleting unwanted segments

Attachments:
Trim.rar


From: Cemortan_Tudor
12 May 2021   [#279]
fixed UnionJoin script
earlier opened surfaces where duplicating

Attachments:
UnionJoin.rar


From: Frenchy Pilou (PILOU)
12 May 2021   [#280] In reply to [#279]
Have you somewhere a repository of all your cool things ?
From: Michael Gibson
12 May 2021   [#281] In reply to [#277]
Hi Tudor,

re:
> ohayo !
> have a rectangle, wanna draw a small chamfer - at a good zoomout.
> Q: It impossible draw without disabling snapping ? i'm asking about an option for snap distance !

In general it's difficult to work on something where you're zoomed out so that it is too small on screen. It's good to zoom in in such situations so you have some room on screen to work with.

There is a setting though for how far your mouse cursor needs to be from a snap point for the snap to engage, that's under Options > Snaps > Object snap options > "Snap radius".

- Michael
From: Cemortan_Tudor
17 May 2021   [#282]
i might forgot, but this should work after copy/paste with coordinate frame
moi.ui.alert(moi.ui.getLastOrientationPickerFrame().origin.x)
From: Cemortan_Tudor
22 May 2021   [#283]
1. construction lines + align on surface + rect center
drag construction lines & place the first point, second point I think should be autoaligned to surface

2. pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed') ) I dont see text toolbox- is any trick behind

Image Attachments:
align_01.png 


From: Michael Gibson
22 May 2021   [#284] In reply to [#283]
Hi Tudor, re: #2:

> 2. pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed') ) I dont see text toolbox- is any trick behind

When you call moi.ui.getText( 'textid' ); that looks up text in the current language's string table for the text of the given id value.

There is no id value for "Closed" so your call there is going to return an empty string.

To fix it you could just pass some text directly instead of calling moi.ui.getText(), or use a valid textid like 'Closed snap'.

- Michael
From: Michael Gibson
22 May 2021   [#285] In reply to [#283]
Hi Tudor,

re:
> 1. construction lines + align on surface + rect center
> drag construction lines & place the first point, second point I think should be autoaligned to surface

It's a bug where snap plane alignment is not happening when the base point is on a center object snap. I've got it on my list to get fixed up for v5.

- Michael
From: Cemortan_Tudor
26 May 2021   [#286]
ohayo !
Wanna ask if in cad is such thing like keep same edge fillet distance (similar to subd will be bevel). I know there's pipe and cut, blend surfaces, but can this be done automatically ?
left - current fillet, right- desired

Image Attachments:
bevel.png 


From: Michael Gibson
26 May 2021   [#287] In reply to [#286]
Hi Tudor, try the "constant distance" type fillet shape.

The regular one called a "rolling ball" fillet generates arcs all of the same radius, with the arc length being longer or shorter depending on the angle between surfaces.

The constant distance method makes the fillet rails to be a given distance apart from each other instead.

- Michael
From: Cemortan_Tudor
27 May 2021   [#288]
it very often fails

Show messages:  1-8  …  209-228  229-248  249-268  269-288  289-308  309-328  329-348  …  369-372