NurbsSurface

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Geometry

All Implemented Interfaces: com.aspose.threed.IMeshConvertible

public class NurbsSurface extends Geometry implements IMeshConvertible

NurbsSurface is a surface represented by NURBS(Non-uniform rational basis spline), A NurbsSurface is defined by two NurbsDirectiongetU and getV. The w component in control point is used as control point’s weight whatever the direction’s type is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL

Costruttori

CostruttoreDescrizione
NurbsSurface()Inizializza una nuova istanza della classe NurbsSurface.
NurbsSurface(String name)Inizializza una nuova istanza della classe NurbsSurface.

Metodi

MetodoDescrizione
getDeformers2()Ottiene tutti i deformatori con i tipi di deformatore specificati
addElement(VertexElement element)Aggiunge un elemento vertice esistente alla geometria corrente
createElement(VertexElementType type)Crea un elemento vertice con il tipo specificato e lo aggiunge alla geometria.
createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)Crea un elemento vertice con il tipo specificato e lo aggiunge alla geometria.
createElementUV(TextureMapping uvMapping)Crea un VertexElementUV con il tipo di mappatura texture fornito.
createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)Crea un VertexElementUV con il tipo di mappatura texture fornito.
equals(Object arg0)
findProperty(String propertyName)Trova la proprietà.
getBoundingBox()Ottiene il bounding box dell’entità corrente nel suo sistema di coordinate dello spazio oggetto.
getCastShadows()Restituisce se questa geometria può proiettare ombra
getClass()
getControlPoints()Restituisce tutti i punti di controllo
getDeformers()Restituisce tutti i deformatori associati a questa geometria.
getElement(VertexElementType type)Restituisce un elemento di vertice con il tipo specificato
getEntityRendererKey()Ottiene la chiave del renderer dell’entità registrata nel renderer
getExcluded()Ottiene se escludere questa entità durante l’esportazione.
getName()Ottiene il nome.
getParentNode()Ottiene il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.
getParentNodes()Ottiene tutti i nodi genitore; un’entità può essere collegata a più nodi genitore per l’instancing della geometria.
getProperties()Ottiene la collezione di tutte le proprietà.
getProperty(String property)Ottieni il valore della proprietà specificata
getReceiveShadows()Restituisce se questa geometria può ricevere ombra.
getScene()Ottiene la scena a cui appartiene questo oggetto
getU()Ottiene la direzione U della superficie NURBS
getV()Ottiene la direzione V della superficie NURBS
getVertexElementOfUV(TextureMapping textureMapping)Restituisce un’istanza di VertexElementUV con il tipo di mappatura texture fornito
getVertexElements()Restituisce tutti gli elementi di vertice
getVisible()Restituisce se la geometria è visibile
hashCode()
notify()
notifyAll()
removeProperty(Property property)Rimuove una proprietà dinamica.
removeProperty(String property)Rimuove la proprietà specificata identificata per nome
setCastShadows(boolean value)Imposta se questa geometria può proiettare ombra
setExcluded(boolean value)Imposta se escludere questa entità durante l’esportazione.
setName(String value)Imposta il nome.
setParentNode(Node value)Imposta il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.
setProperty(String property, Object value)Imposta il valore della proprietà specificata
setReceiveShadows(boolean value)Imposta se questa geometria può ricevere ombra.
setVisible(boolean value)Imposta se la geometria è visibile
toMesh()Converti la superficie NURBS nella mesh
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

NurbsSurface()

public NurbsSurface()

Inizializza una nuova istanza della classe NurbsSurface.

NurbsSurface(String name)

public NurbsSurface(String name)

Inizializza una nuova istanza della classe NurbsSurface.

Parameters:

ParametroTipoDescrizione
nomejava.lang.StringNome.

getDeformers2()

public Collection<T> <T>getDeformers2()

Ottiene tutti i deformatori con i tipi di deformatore specificati

Returns: java.util.Collection - Collezione di Deformer

addElement(VertexElement element)

public void addElement(VertexElement element)

Aggiunge un elemento vertice esistente alla geometria corrente

Parameters:

ParametroTipoDescrizione
elementVertexElementL’elemento vertice da aggiungere

createElement(VertexElementType type)

public VertexElement createElement(VertexElementType type)

Crea un elemento vertice con il tipo specificato e lo aggiunge alla geometria.

Parameters:

ParametroTipoDescrizione
typeVertexElementTypeTipo di elemento vertice

Returns: VertexElement - Created element. Remarks: If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)

public VertexElement createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)

Crea un elemento vertice con il tipo specificato e lo aggiunge alla geometria.

Parameters:

ParametroTipoDescrizione
typeVertexElementTypeTipo di elemento vertice
mappingModeMappingModeModalità di mappatura predefinita
referenceModeReferenceModeModalità di riferimento predefinita

Returns: VertexElement - Created element. Remarks: If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

createElementUV(TextureMapping uvMapping)

public VertexElementUV createElementUV(TextureMapping uvMapping)

Crea un VertexElementUV con il tipo di mappatura texture fornito.

Parameters:

ParametroTipoDescrizione
uvMappingTextureMappingQuale tipo di mappatura texture creare

Returns: VertexElementUV - Created element uv

createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)

public VertexElementUV createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)

Crea un VertexElementUV con il tipo di mappatura texture fornito.

Parameters:

ParametroTipoDescrizione
uvMappingTextureMappingQuale tipo di mappatura texture creare
mappingModeMappingModeModalità di mappatura predefinita
referenceModeReferenceModeModalità di riferimento predefinita

Returns: VertexElementUV - Created element uv

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParametroTipoDescrizione
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

Trova la proprietà. Può essere una proprietà dinamica (creata con CreateDynamicProperty/SetProperty) o una proprietà nativa (identificata per nome).

Parameters:

ParametroTipoDescrizione
propertyNamejava.lang.StringNome della proprietà.

Returns: Property - The property.

getBoundingBox()

public BoundingBox getBoundingBox()

Ottiene il bounding box dell’entità corrente nel suo sistema di coordinate dello spazio oggetto.

Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape

Entity entity = new Sphere();
     entity.setRadius(10);
     var bbox = entity.getBoundingBox();
     System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());

getCastShadows()

public boolean getCastShadows()

Restituisce se questa geometria può proiettare ombra

Returns: boolean - se questa geometria può proiettare ombra

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getControlPoints()

public List<Vector4> getControlPoints()

Restituisce tutti i punti di controllo

Returns: java.util.List<com.aspose.threed.Vector4> - tutti i punti di controllo

getDeformers()

public List<Deformer> getDeformers()

Restituisce tutti i deformatori associati a questa geometria.

Returns: java.util.List<com.aspose.threed.Deformer> - tutti i deformatori associati a questa geometria.

getElement(VertexElementType type)

public VertexElement getElement(VertexElementType type)

Restituisce un elemento di vertice con il tipo specificato

Parameters:

ParametroTipoDescrizione
typeVertexElementTypequal è il tipo di elemento vertice da trovare

Returns: VertexElement - VertexElement instance if found, otherwise null will be returned.

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

Ottiene la chiave del renderer dell’entità registrata nel renderer

Returns: EntityRendererKey - the key of the entity renderer registered in the renderer

getExcluded()

public boolean getExcluded()

Ottiene se escludere questa entità durante l’esportazione.

Returns: boolean - se escludere questa entità durante l’esportazione.

getName()

public String getName()

Ottiene il nome.

Returns: java.lang.String - il nome.

getParentNode()

public Node getParentNode()

Ottiene il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.

Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.

getParentNodes()

public ArrayList<Node> getParentNodes()

Ottiene tutti i nodi genitore; un’entità può essere collegata a più nodi genitore per l’instancing della geometria.

Returns: java.util.ArrayList<com.aspose.threed.Node> - tutti i nodi genitore, un’entità può essere collegata a più nodi genitore per l’instanziazione della geometria

getProperties()

public PropertyCollection getProperties()

Ottiene la collezione di tutte le proprietà.

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

Ottieni il valore della proprietà specificata

Parameters:

ParametroTipoDescrizione
proprietàjava.lang.StringNome della proprietà

Returns: java.lang.Object - Il valore della proprietà trovata

getReceiveShadows()

public boolean getReceiveShadows()

Restituisce se questa geometria può ricevere ombra.

Returns: boolean - se questa geometria può ricevere ombra.

getScene()

public Scene getScene()

Ottiene la scena a cui appartiene questo oggetto

Returns: Scene - the scene that this object belongs to

getU()

public NurbsDirection getU()

Ottiene la direzione U della superficie NURBS

Returns: NurbsDirection - the NURBS surface’s U direction

getV()

public NurbsDirection getV()

Ottiene la direzione V della superficie NURBS

Returns: NurbsDirection - the NURBS surface’s V direction

getVertexElementOfUV(TextureMapping textureMapping)

public VertexElementUV getVertexElementOfUV(TextureMapping textureMapping)

Restituisce un’istanza di VertexElementUV con il tipo di mappatura texture fornito

Parameters:

ParametroTipoDescrizione
textureMappingTextureMapping

Returns: VertexElementUV - VertexElementUV with the texture mapping type

getVertexElements()

public List<VertexElement> getVertexElements()

Restituisce tutti gli elementi di vertice

Returns: java.util.List<com.aspose.threed.VertexElement> - tutti gli elementi dei vertici

getVisible()

public boolean getVisible()

Restituisce se la geometria è visibile

Returns: boolean - se la geometria è visibile

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

Rimuove una proprietà dinamica.

Parameters:

ParametroTipoDescrizione
propertyPropertyQuale proprietà rimuovere

Returns: boolean - true se la proprietà è stata rimossa con successo

removeProperty(String property)

public boolean removeProperty(String property)

Rimuove la proprietà specificata identificata per nome

Parameters:

ParametroTipoDescrizione
proprietàjava.lang.StringQuale proprietà rimuovere

Returns: boolean - true se la proprietà è stata rimossa con successo

setCastShadows(boolean value)

public void setCastShadows(boolean value)

Imposta se questa geometria può proiettare ombra

Parameters:

ParametroTipoDescrizione
valorebooleanNuovo valore

setExcluded(boolean value)

public void setExcluded(boolean value)

Imposta se escludere questa entità durante l’esportazione.

Parameters:

ParametroTipoDescrizione
valorebooleanNuovo valore

setName(String value)

public void setName(String value)

Imposta il nome.

Parameters:

ParametroTipoDescrizione
valorejava.lang.StringNuovo valore

setParentNode(Node value)

public void setParentNode(Node value)

Imposta il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.

Parameters:

ParametroTipoDescrizione
valueNodeNuovo valore

setProperty(String property, Object value)

public void setProperty(String property, Object value)

Imposta il valore della proprietà specificata

Parameters:

ParametroTipoDescrizione
proprietàjava.lang.StringNome della proprietà
valorejava.lang.ObjectIl valore della proprietà

setReceiveShadows(boolean value)

public void setReceiveShadows(boolean value)

Imposta se questa geometria può ricevere ombra.

Parameters:

ParametroTipoDescrizione
valorebooleanNuovo valore

setVisible(boolean value)

public void setVisible(boolean value)

Imposta se la geometria è visibile

Parameters:

ParametroTipoDescrizione
valorebooleanNuovo valore

toMesh()

public Mesh toMesh()

Converti la superficie NURBS nella mesh

Returns: Mesh

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParametroTipoDescrizione
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParametroTipoDescrizione
arg0long
arg1int